@@ -285,6 +285,7 @@ pub mod ranges;
285
285
pub mod redundant_clone;
286
286
pub mod redundant_field_names;
287
287
pub mod redundant_pattern_matching;
288
+ pub mod redundant_pub_crate;
288
289
pub mod redundant_static_lifetimes;
289
290
pub mod reference;
290
291
pub mod regex;
@@ -323,7 +324,7 @@ pub mod zero_div_zero;
323
324
pub use crate :: utils:: conf:: Conf ;
324
325
325
326
mod reexport {
326
- crate use rustc_ast:: ast:: Name ;
327
+ pub use rustc_ast:: ast:: Name ;
327
328
}
328
329
329
330
/// Register all pre expansion lints
@@ -745,6 +746,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
745
746
& redundant_clone:: REDUNDANT_CLONE ,
746
747
& redundant_field_names:: REDUNDANT_FIELD_NAMES ,
747
748
& redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ,
749
+ & redundant_pub_crate:: REDUNDANT_PUB_CRATE ,
748
750
& redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ,
749
751
& reference:: DEREF_ADDROF ,
750
752
& reference:: REF_IN_DEREF ,
@@ -1021,6 +1023,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1021
1023
store. register_late_pass ( || box wildcard_imports:: WildcardImports ) ;
1022
1024
store. register_early_pass ( || box macro_use:: MacroUseImports ) ;
1023
1025
store. register_late_pass ( || box verbose_file_reads:: VerboseFileReads ) ;
1026
+ store. register_late_pass ( || box redundant_pub_crate:: RedundantPubCrate :: default ( ) ) ;
1024
1027
1025
1028
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
1026
1029
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1322,6 +1325,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1322
1325
LintId :: of( & redundant_clone:: REDUNDANT_CLONE ) ,
1323
1326
LintId :: of( & redundant_field_names:: REDUNDANT_FIELD_NAMES ) ,
1324
1327
LintId :: of( & redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ) ,
1328
+ LintId :: of( & redundant_pub_crate:: REDUNDANT_PUB_CRATE ) ,
1325
1329
LintId :: of( & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
1326
1330
LintId :: of( & reference:: DEREF_ADDROF ) ,
1327
1331
LintId :: of( & reference:: REF_IN_DEREF ) ,
@@ -1463,6 +1467,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1463
1467
LintId :: of( & question_mark:: QUESTION_MARK ) ,
1464
1468
LintId :: of( & redundant_field_names:: REDUNDANT_FIELD_NAMES ) ,
1465
1469
LintId :: of( & redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ) ,
1470
+ LintId :: of( & redundant_pub_crate:: REDUNDANT_PUB_CRATE ) ,
1466
1471
LintId :: of( & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
1467
1472
LintId :: of( & regex:: REGEX_MACRO ) ,
1468
1473
LintId :: of( & regex:: TRIVIAL_REGEX ) ,
0 commit comments