Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 41bc0bf

Browse files
committed
Auto merge of #1247 - alexheretic:register-more-clippy, r=Xanewok
Add missing clippy_lint register calls I found some extra calls to make: https://github.com/rust-lang/rust-clippy/blob/da7aebc342b7dae444912b98dedbab22bf2a224c/src/driver.rs#L135-L136 Fixes #1241
2 parents 17dae09 + e9c77a9 commit 41bc0bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/build/rustc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ fn clippy_after_parse_callback(state: &mut rustc_driver::driver::CompileState<'_
220220
for (name, (to, deprecated_name)) in lint_groups {
221221
ls.register_group(Some(sess), true, name, deprecated_name, to);
222222
}
223+
clippy_lints::register_pre_expansion_lints(sess, &mut ls, &conf);
224+
clippy_lints::register_renamed(&mut ls);
223225

224226
sess.plugin_llvm_passes.borrow_mut().extend(llvm_passes);
225227
sess.plugin_attributes.borrow_mut().extend(attributes);

0 commit comments

Comments
 (0)