about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-10-13 23:39:55 +0000
committerbors <bors@rust-lang.org>2024-10-13 23:39:55 +0000
commit43e99e54fa9336e1ccc1a8a4b33f958a352f03d0 (patch)
treebdd69fcf7532b90f1ec92995cb3a9d7dd6975503
parent6a281e9a73e258b8b60157736390f221d6c924da (diff)
parent8b075fc63429b4ebec78bd1ee81bb78a4639ab02 (diff)
downloadrust-43e99e54fa9336e1ccc1a8a4b33f958a352f03d0.tar.gz
rust-43e99e54fa9336e1ccc1a8a4b33f958a352f03d0.zip
Auto merge of #13541 - xFrednet:0-module-name-rep, r=blyxyas
Move `clippy::module_name_repetitions` to `restriction` (from `pedantic`)

Rational:
- Too pedantic IMO, I use `#[warn(pedantic)]` in my personal projects, but then always allow this lint. The fact that we had a few `#[expect(clippy::module_name_repetitions)]` also underlines this point IMO
- STD doesn't do this either. Examples:
  - std::vec::Vec
  - std::collections::vec_deque::VecDequeue
- #7666 commonly ignored

---

changelog: Move [`module_name_repetitions`] to `restriction` (from `pedantic`)
[#13541](https://github.com/rust-lang/rust-clippy/pull/13541)
-rw-r--r--clippy_lints/src/item_name_repetitions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/item_name_repetitions.rs b/clippy_lints/src/item_name_repetitions.rs
index 511317c8b43..dd90e2a6e94 100644
--- a/clippy_lints/src/item_name_repetitions.rs
+++ b/clippy_lints/src/item_name_repetitions.rs
@@ -88,7 +88,7 @@ declare_clippy_lint! {
     /// ```
     #[clippy::version = "1.33.0"]
     pub MODULE_NAME_REPETITIONS,
-    pedantic,
+    restriction,
     "type names prefixed/postfixed with their containing module's name"
 }