Skip to content

Commit 5de93cc

Browse files
committed
Auto merge of #4863 - phansch:use_self, r=flip1995
Move use_self to nursery Closes #4859 We have a lot of false positives in this lint, so I think it makes sense to move this to the nursery until they are resolved. changelog: Move `use_self` lint to nursery, due to many false positives
2 parents 350f3d6 + fd7eca2 commit 5de93cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clippy_lints/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,6 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
10501050
LintId::of(&unicode::NON_ASCII_LITERAL),
10511051
LintId::of(&unicode::UNICODE_NOT_NFC),
10521052
LintId::of(&unused_self::UNUSED_SELF),
1053-
LintId::of(&use_self::USE_SELF),
10541053
]);
10551054

10561055
store.register_group(true, "clippy::internal", Some("clippy_internal"), vec![
@@ -1579,6 +1578,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
15791578
LintId::of(&mutex_atomic::MUTEX_INTEGER),
15801579
LintId::of(&needless_borrow::NEEDLESS_BORROW),
15811580
LintId::of(&path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE),
1581+
LintId::of(&use_self::USE_SELF),
15821582
]);
15831583
}
15841584

clippy_lints/src/use_self.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ declare_clippy_lint! {
4343
/// }
4444
/// ```
4545
pub USE_SELF,
46-
pedantic,
46+
nursery,
4747
"Unnecessary structure name repetition whereas `Self` is applicable"
4848
}
4949

src/lintlist/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2193,7 +2193,7 @@ pub const ALL_LINTS: [Lint; 338] = [
21932193
},
21942194
Lint {
21952195
name: "use_self",
2196-
group: "pedantic",
2196+
group: "nursery",
21972197
desc: "Unnecessary structure name repetition whereas `Self` is applicable",
21982198
deprecation: None,
21992199
module: "use_self",

0 commit comments

Comments
 (0)