Skip to content

Commit

Permalink
Migrate write.rs to a late pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexendoo committed Mar 10, 2022
1 parent 8ae74da commit 40301d3
Show file tree
Hide file tree
Showing 17 changed files with 308 additions and 746 deletions.
3 changes: 1 addition & 2 deletions clippy_lints/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ extern crate rustc_lint;
extern crate rustc_middle;
extern crate rustc_mir_dataflow;
extern crate rustc_parse;
extern crate rustc_parse_format;
extern crate rustc_session;
extern crate rustc_span;
extern crate rustc_target;
Expand Down Expand Up @@ -428,7 +427,6 @@ pub fn register_pre_expansion_lints(store: &mut rustc_lint::LintStore, sess: &Se
})
});

store.register_pre_expansion_pass(|| Box::new(write::Write::default()));
store.register_pre_expansion_pass(move || Box::new(attrs::EarlyAttributes { msrv }));
}

Expand Down Expand Up @@ -864,6 +862,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
ignore_publish: cargo_ignore_publish,
})
});
store.register_late_pass(|| Box::new(write::Write::default()));
// add lints here, do not remove this comment, it's used in `new_lint`
}

Expand Down
Loading

0 comments on commit 40301d3

Please sign in to comment.