Skip to content

Commit

Permalink
Rewrite shadow lint
Browse files Browse the repository at this point in the history
  • Loading branch information
camsteffen committed Sep 30, 2021
1 parent 99861c0 commit 8c0e4d5
Show file tree
Hide file tree
Showing 6 changed files with 379 additions and 407 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/lib.rs
Expand Up @@ -324,7 +324,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
store.register_late_pass(|| Box::new(same_name_method::SameNameMethod));
store.register_late_pass(|| Box::new(map_clone::MapClone));
store.register_late_pass(|| Box::new(map_err_ignore::MapErrIgnore));
store.register_late_pass(|| Box::new(shadow::Shadow));
store.register_late_pass(|| Box::new(shadow::Shadow::default()));
store.register_late_pass(|| Box::new(unit_types::UnitTypes));
store.register_late_pass(|| Box::new(loops::Loops));
store.register_late_pass(|| Box::new(main_recursion::MainRecursion::default()));
Expand Down

0 comments on commit 8c0e4d5

Please sign in to comment.