@@ -343,13 +343,8 @@ mod reexport {
343
343
/// level (i.e `#![cfg_attr(...)]`) will still be expanded even when using a pre-expansion pass.
344
344
///
345
345
/// Used in `./src/driver.rs`.
346
- pub fn register_pre_expansion_lints ( store : & mut rustc_lint:: LintStore , conf : & Conf ) {
346
+ pub fn register_pre_expansion_lints ( store : & mut rustc_lint:: LintStore ) {
347
347
store. register_pre_expansion_pass ( || box write:: Write :: default ( ) ) ;
348
- store. register_pre_expansion_pass ( || box redundant_field_names:: RedundantFieldNames ) ;
349
- let single_char_binding_names_threshold = conf. single_char_binding_names_threshold ;
350
- store. register_pre_expansion_pass ( move || box non_expressive_names:: NonExpressiveNames {
351
- single_char_binding_names_threshold,
352
- } ) ;
353
348
store. register_pre_expansion_pass ( || box attrs:: DeprecatedCfgAttribute ) ;
354
349
store. register_pre_expansion_pass ( || box dbg_macro:: DbgMacro ) ;
355
350
}
@@ -1060,6 +1055,11 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1060
1055
store. register_late_pass ( || box future_not_send:: FutureNotSend ) ;
1061
1056
store. register_late_pass ( || box utils:: internal_lints:: CollapsibleCalls ) ;
1062
1057
store. register_late_pass ( || box if_let_mutex:: IfLetMutex ) ;
1058
+ store. register_early_pass ( || box redundant_field_names:: RedundantFieldNames ) ;
1059
+ let single_char_binding_names_threshold = conf. single_char_binding_names_threshold ;
1060
+ store. register_early_pass ( move || box non_expressive_names:: NonExpressiveNames {
1061
+ single_char_binding_names_threshold,
1062
+ } ) ;
1063
1063
1064
1064
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
1065
1065
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
0 commit comments