@@ -285,6 +285,7 @@ pub mod ranges;
285285pub mod redundant_clone;
286286pub mod redundant_field_names;
287287pub mod redundant_pattern_matching;
288+ pub mod redundant_pub_crate;
288289pub mod redundant_static_lifetimes;
289290pub mod reference;
290291pub mod regex;
@@ -323,7 +324,7 @@ pub mod zero_div_zero;
323324pub use crate :: utils:: conf:: Conf ;
324325
325326mod reexport {
326- crate use rustc_ast:: ast:: Name ;
327+ pub use rustc_ast:: ast:: Name ;
327328}
328329
329330/// Register all pre expansion lints
@@ -745,6 +746,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
745746 & redundant_clone:: REDUNDANT_CLONE ,
746747 & redundant_field_names:: REDUNDANT_FIELD_NAMES ,
747748 & redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ,
749+ & redundant_pub_crate:: REDUNDANT_PUB_CRATE ,
748750 & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ,
749751 & reference:: DEREF_ADDROF ,
750752 & reference:: REF_IN_DEREF ,
@@ -1021,6 +1023,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10211023 store. register_late_pass ( || box wildcard_imports:: WildcardImports ) ;
10221024 store. register_early_pass ( || box macro_use:: MacroUseImports ) ;
10231025 store. register_late_pass ( || box verbose_file_reads:: VerboseFileReads ) ;
1026+ store. register_late_pass ( || box redundant_pub_crate:: RedundantPubCrate :: default ( ) ) ;
10241027
10251028 store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
10261029 LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1322,6 +1325,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13221325 LintId :: of( & redundant_clone:: REDUNDANT_CLONE ) ,
13231326 LintId :: of( & redundant_field_names:: REDUNDANT_FIELD_NAMES ) ,
13241327 LintId :: of( & redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ) ,
1328+ LintId :: of( & redundant_pub_crate:: REDUNDANT_PUB_CRATE ) ,
13251329 LintId :: of( & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
13261330 LintId :: of( & reference:: DEREF_ADDROF ) ,
13271331 LintId :: of( & reference:: REF_IN_DEREF ) ,
@@ -1463,6 +1467,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14631467 LintId :: of( & question_mark:: QUESTION_MARK ) ,
14641468 LintId :: of( & redundant_field_names:: REDUNDANT_FIELD_NAMES ) ,
14651469 LintId :: of( & redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ) ,
1470+ LintId :: of( & redundant_pub_crate:: REDUNDANT_PUB_CRATE ) ,
14661471 LintId :: of( & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
14671472 LintId :: of( & regex:: REGEX_MACRO ) ,
14681473 LintId :: of( & regex:: TRIVIAL_REGEX ) ,
0 commit comments