@@ -341,13 +341,8 @@ mod reexport {
341
341
/// level (i.e `#![cfg_attr(...)]`) will still be expanded even when using a pre-expansion pass.
342
342
///
343
343
/// Used in `./src/driver.rs`.
344
- pub fn register_pre_expansion_lints ( store : & mut rustc_lint:: LintStore , conf : & Conf ) {
344
+ pub fn register_pre_expansion_lints ( store : & mut rustc_lint:: LintStore ) {
345
345
store. register_pre_expansion_pass ( || box write:: Write :: default ( ) ) ;
346
- store. register_pre_expansion_pass ( || box redundant_field_names:: RedundantFieldNames ) ;
347
- let single_char_binding_names_threshold = conf. single_char_binding_names_threshold ;
348
- store. register_pre_expansion_pass ( move || box non_expressive_names:: NonExpressiveNames {
349
- single_char_binding_names_threshold,
350
- } ) ;
351
346
store. register_pre_expansion_pass ( || box attrs:: DeprecatedCfgAttribute ) ;
352
347
store. register_pre_expansion_pass ( || box dbg_macro:: DbgMacro ) ;
353
348
}
@@ -1051,6 +1046,11 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1051
1046
store. register_late_pass ( || box unnamed_address:: UnnamedAddress ) ;
1052
1047
store. register_late_pass ( || box dereference:: Dereferencing ) ;
1053
1048
store. register_late_pass ( || box future_not_send:: FutureNotSend ) ;
1049
+ store. register_early_pass ( || box redundant_field_names:: RedundantFieldNames ) ;
1050
+ let single_char_binding_names_threshold = conf. single_char_binding_names_threshold ;
1051
+ store. register_early_pass ( move || box non_expressive_names:: NonExpressiveNames {
1052
+ single_char_binding_names_threshold,
1053
+ } ) ;
1054
1054
1055
1055
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
1056
1056
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
0 commit comments