mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Auto merge of #5372 - matthiaskrgr:rpc_nursery, r=flip1995
move redundant_pub_crate to nursery cc #5369 changelog: none
This commit is contained in:
commit
5de8c101e5
5 changed files with 5 additions and 6 deletions
|
@ -1325,7 +1325,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
|
|||
LintId::of(&redundant_clone::REDUNDANT_CLONE),
|
||||
LintId::of(&redundant_field_names::REDUNDANT_FIELD_NAMES),
|
||||
LintId::of(&redundant_pattern_matching::REDUNDANT_PATTERN_MATCHING),
|
||||
LintId::of(&redundant_pub_crate::REDUNDANT_PUB_CRATE),
|
||||
LintId::of(&redundant_static_lifetimes::REDUNDANT_STATIC_LIFETIMES),
|
||||
LintId::of(&reference::DEREF_ADDROF),
|
||||
LintId::of(&reference::REF_IN_DEREF),
|
||||
|
@ -1466,7 +1465,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
|
|||
LintId::of(&question_mark::QUESTION_MARK),
|
||||
LintId::of(&redundant_field_names::REDUNDANT_FIELD_NAMES),
|
||||
LintId::of(&redundant_pattern_matching::REDUNDANT_PATTERN_MATCHING),
|
||||
LintId::of(&redundant_pub_crate::REDUNDANT_PUB_CRATE),
|
||||
LintId::of(&redundant_static_lifetimes::REDUNDANT_STATIC_LIFETIMES),
|
||||
LintId::of(®ex::REGEX_MACRO),
|
||||
LintId::of(®ex::TRIVIAL_REGEX),
|
||||
|
@ -1673,6 +1671,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
|
|||
LintId::of(&mutex_atomic::MUTEX_INTEGER),
|
||||
LintId::of(&needless_borrow::NEEDLESS_BORROW),
|
||||
LintId::of(&path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE),
|
||||
LintId::of(&redundant_pub_crate::REDUNDANT_PUB_CRATE),
|
||||
LintId::of(&transmute::USELESS_TRANSMUTE),
|
||||
LintId::of(&use_self::USE_SELF),
|
||||
]);
|
||||
|
|
|
@ -28,7 +28,7 @@ declare_clippy_lint! {
|
|||
/// }
|
||||
/// ```
|
||||
pub REDUNDANT_PUB_CRATE,
|
||||
style,
|
||||
nursery,
|
||||
"Using `pub(crate)` visibility on items that are not crate visible due to the visibility of the module that contains them."
|
||||
}
|
||||
|
||||
|
|
|
@ -1766,7 +1766,7 @@ pub const ALL_LINTS: [Lint; 362] = [
|
|||
},
|
||||
Lint {
|
||||
name: "redundant_pub_crate",
|
||||
group: "style",
|
||||
group: "nursery",
|
||||
desc: "Using `pub(crate)` visibility on items that are not crate visible due to the visibility of the module that contains them.",
|
||||
deprecation: None,
|
||||
module: "redundant_pub_crate",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// aux-build:wildcard_imports_helper.rs
|
||||
|
||||
#![warn(clippy::wildcard_imports)]
|
||||
#![allow(clippy::redundant_pub_crate)]
|
||||
//#![allow(clippy::redundant_pub_crate)]
|
||||
#![allow(unused)]
|
||||
#![warn(unused_imports)]
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// aux-build:wildcard_imports_helper.rs
|
||||
|
||||
#![warn(clippy::wildcard_imports)]
|
||||
#![allow(clippy::redundant_pub_crate)]
|
||||
//#![allow(clippy::redundant_pub_crate)]
|
||||
#![allow(unused)]
|
||||
#![warn(unused_imports)]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue