@@ -346,13 +346,8 @@ mod reexport {
346
346
/// level (i.e `#![cfg_attr(...)]`) will still be expanded even when using a pre-expansion pass.
347
347
///
348
348
/// Used in `./src/driver.rs`.
349
- pub fn register_pre_expansion_lints ( store : & mut rustc_lint:: LintStore , conf : & Conf ) {
349
+ pub fn register_pre_expansion_lints ( store : & mut rustc_lint:: LintStore ) {
350
350
store. register_pre_expansion_pass ( || box write:: Write :: default ( ) ) ;
351
- store. register_pre_expansion_pass ( || box redundant_field_names:: RedundantFieldNames ) ;
352
- let single_char_binding_names_threshold = conf. single_char_binding_names_threshold ;
353
- store. register_pre_expansion_pass ( move || box non_expressive_names:: NonExpressiveNames {
354
- single_char_binding_names_threshold,
355
- } ) ;
356
351
store. register_pre_expansion_pass ( || box attrs:: EarlyAttributes ) ;
357
352
store. register_pre_expansion_pass ( || box dbg_macro:: DbgMacro ) ;
358
353
}
@@ -1071,6 +1066,11 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1071
1066
store. register_late_pass ( || box match_on_vec_items:: MatchOnVecItems ) ;
1072
1067
store. register_early_pass ( || box manual_non_exhaustive:: ManualNonExhaustive ) ;
1073
1068
store. register_late_pass ( || box manual_async_fn:: ManualAsyncFn ) ;
1069
+ store. register_early_pass ( || box redundant_field_names:: RedundantFieldNames ) ;
1070
+ let single_char_binding_names_threshold = conf. single_char_binding_names_threshold ;
1071
+ store. register_early_pass ( move || box non_expressive_names:: NonExpressiveNames {
1072
+ single_char_binding_names_threshold,
1073
+ } ) ;
1074
1074
1075
1075
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
1076
1076
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
0 commit comments