Skip to content

Commit

Permalink
add size parameter for lint
Browse files Browse the repository at this point in the history
  • Loading branch information
basil-cow committed Jan 23, 2020
1 parent eff3bc5 commit 6c6d865
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 183 deletions.
3 changes: 2 additions & 1 deletion clippy_lints/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
store.register_late_pass(|| box utils::internal_lints::OuterExpnDataPass);
store.register_late_pass(|| box utils::inspector::DeepCodeInspector);
store.register_late_pass(|| box utils::author::Author);
store.register_late_pass(|| box types::Types);
let vec_box_size_threshold = conf.vec_box_size_threshold;
store.register_late_pass(move || box types::Types::new(vec_box_size_threshold));
store.register_late_pass(|| box booleans::NonminimalBool);
store.register_late_pass(|| box eq_op::EqOp);
store.register_late_pass(|| box enum_glob_use::EnumGlobUse);
Expand Down
Loading

0 comments on commit 6c6d865

Please sign in to comment.