Skip to content

Commit 009a191

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 4873236 commit 009a191

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
@@ -122,17 +122,11 @@ pub const RANGE_ARGUMENT_TRAIT: [&str; 3] = ["core", "ops", "RangeBounds"];
122122
pub const RC_PTR_EQ: [&str; 4] = ["alloc", "rc", "Rc", "ptr_eq"];
123123
pub const REFCELL_REF: [&str; 3] = ["core", "cell", "Ref"];
124124
pub const REFCELL_REFMUT: [&str; 3] = ["core", "cell", "RefMut"];
125-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
126125
pub const REGEX_BUILDER_NEW: [&str; 5] = ["regex", "re_builder", "unicode", "RegexBuilder", "new"];
127-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
128126
pub const REGEX_BYTES_BUILDER_NEW: [&str; 5] = ["regex", "re_builder", "bytes", "RegexBuilder", "new"];
129-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
130127
pub const REGEX_BYTES_NEW: [&str; 4] = ["regex", "re_bytes", "Regex", "new"];
131-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
132128
pub const REGEX_BYTES_SET_NEW: [&str; 5] = ["regex", "re_set", "bytes", "RegexSet", "new"];
133-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
134129
pub const REGEX_NEW: [&str; 4] = ["regex", "re_unicode", "Regex", "new"];
135-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
136130
pub const REGEX_SET_NEW: [&str; 5] = ["regex", "re_set", "unicode", "RegexSet", "new"];
137131
/// Preferably use the diagnostic item `sym::Result` where possible
138132
pub const RESULT: [&str; 3] = ["core", "result", "Result"];

0 commit comments

Comments
 (0)