diff --git a/src/build/rustc.rs b/src/build/rustc.rs index 2acf7c7b28d..24c73f85039 100644 --- a/src/build/rustc.rs +++ b/src/build/rustc.rs @@ -220,6 +220,8 @@ fn clippy_after_parse_callback(state: &mut rustc_driver::driver::CompileState<'_ for (name, (to, deprecated_name)) in lint_groups { ls.register_group(Some(sess), true, name, deprecated_name, to); } + clippy_lints::register_pre_expansion_lints(sess, &mut ls, &conf); + clippy_lints::register_renamed(&mut ls); sess.plugin_llvm_passes.borrow_mut().extend(llvm_passes); sess.plugin_attributes.borrow_mut().extend(attributes);