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 14, 2022
1 parent dc5423a commit c638cce
Show file tree
Hide file tree
Showing 17 changed files with 309 additions and 747 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 @@ -429,7 +428,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 @@ -866,6 +864,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 c638cce

Please sign in to comment.