Skip to content

Commit 5860abf

Browse files
committed
Remove #[expect(clippy::invalid_paths)] from regex paths
The previous commit made `rustc_mir_dataflow` a dependency of `clippy_utils`, and `rustc_mir_dataflow` depends upon `regex`: https://github.com/rust-lang/rust/blob/ee2b16100e2fad2c08f01f913b826c00024f85a8/compiler/rustc_mir_dataflow/Cargo.toml#L11 Hence, `def_path_res` resolves those paths.
1 parent 414add3 commit 5860abf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clippy_utils/src/paths.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,11 @@ pub const RANGE_ARGUMENT_TRAIT: [&str; 3] = ["core", "ops", "RangeBounds"];
124124
pub const RC_PTR_EQ: [&str; 4] = ["alloc", "rc", "Rc", "ptr_eq"];
125125
pub const REFCELL_REF: [&str; 3] = ["core", "cell", "Ref"];
126126
pub const REFCELL_REFMUT: [&str; 3] = ["core", "cell", "RefMut"];
127-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
128127
pub const REGEX_BUILDER_NEW: [&str; 5] = ["regex", "re_builder", "unicode", "RegexBuilder", "new"];
129-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
130128
pub const REGEX_BYTES_BUILDER_NEW: [&str; 5] = ["regex", "re_builder", "bytes", "RegexBuilder", "new"];
131-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
132129
pub const REGEX_BYTES_NEW: [&str; 4] = ["regex", "re_bytes", "Regex", "new"];
133-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
134130
pub const REGEX_BYTES_SET_NEW: [&str; 5] = ["regex", "re_set", "bytes", "RegexSet", "new"];
135-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
136131
pub const REGEX_NEW: [&str; 4] = ["regex", "re_unicode", "Regex", "new"];
137-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
138132
pub const REGEX_SET_NEW: [&str; 5] = ["regex", "re_set", "unicode", "RegexSet", "new"];
139133
/// Preferably use the diagnostic item `sym::Result` where possible
140134
pub const RESULT: [&str; 3] = ["core", "result", "Result"];

0 commit comments

Comments
 (0)