mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
Move clippy::module_name_repetitions
to restriction
(from pedantic
)
Rational: - Too pedantic IMO, it's often better to have fine grained modules and then rexport stuff instead of one gigantic file - STD doesn't do this either. Examples: - std::vec::Vec - std::collections::vec_deque::VecDequeue - rust-clippy#7666 commonly ignored
This commit is contained in:
parent
48e98ec68d
commit
8b075fc634
4 changed files with 1 additions and 4 deletions
|
@ -71,7 +71,7 @@ declare_clippy_lint! {
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "1.33.0"]
|
#[clippy::version = "1.33.0"]
|
||||||
pub MODULE_NAME_REPETITIONS,
|
pub MODULE_NAME_REPETITIONS,
|
||||||
pedantic,
|
restriction,
|
||||||
"type names prefixed/postfixed with their containing module's name"
|
"type names prefixed/postfixed with their containing module's name"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -412,7 +412,6 @@ impl LiteralDigitGrouping {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[expect(clippy::module_name_repetitions)]
|
|
||||||
pub struct DecimalLiteralRepresentation {
|
pub struct DecimalLiteralRepresentation {
|
||||||
threshold: u64,
|
threshold: u64,
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,6 @@ impl MacroRefData {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
#[expect(clippy::module_name_repetitions)]
|
|
||||||
pub struct MacroUseImports {
|
pub struct MacroUseImports {
|
||||||
/// the actual import path used and the span of the attribute above it. The value is
|
/// the actual import path used and the span of the attribute above it. The value is
|
||||||
/// the location, where the lint should be emitted.
|
/// the location, where the lint should be emitted.
|
||||||
|
|
|
@ -17,7 +17,6 @@ use rustc_middle::ty::layout::LayoutOf;
|
||||||
use rustc_session::impl_lint_pass;
|
use rustc_session::impl_lint_pass;
|
||||||
use rustc_span::{DesugaringKind, Span, sym};
|
use rustc_span::{DesugaringKind, Span, sym};
|
||||||
|
|
||||||
#[expect(clippy::module_name_repetitions)]
|
|
||||||
pub struct UselessVec {
|
pub struct UselessVec {
|
||||||
too_large_for_stack: u64,
|
too_large_for_stack: u64,
|
||||||
msrv: Msrv,
|
msrv: Msrv,
|
||||||
|
|
Loading…
Reference in a new issue