Skip to content

Commit 128694a

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 ea63b25 commit 128694a

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
@@ -119,17 +119,11 @@ pub const RANGE_ARGUMENT_TRAIT: [&str; 3] = ["core", "ops", "RangeBounds"];
119119
pub const RC_PTR_EQ: [&str; 4] = ["alloc", "rc", "Rc", "ptr_eq"];
120120
pub const REFCELL_REF: [&str; 3] = ["core", "cell", "Ref"];
121121
pub const REFCELL_REFMUT: [&str; 3] = ["core", "cell", "RefMut"];
122-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
123122
pub const REGEX_BUILDER_NEW: [&str; 5] = ["regex", "re_builder", "unicode", "RegexBuilder", "new"];
124-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
125123
pub const REGEX_BYTES_BUILDER_NEW: [&str; 5] = ["regex", "re_builder", "bytes", "RegexBuilder", "new"];
126-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
127124
pub const REGEX_BYTES_NEW: [&str; 4] = ["regex", "re_bytes", "Regex", "new"];
128-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
129125
pub const REGEX_BYTES_SET_NEW: [&str; 5] = ["regex", "re_set", "bytes", "RegexSet", "new"];
130-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
131126
pub const REGEX_NEW: [&str; 4] = ["regex", "re_unicode", "Regex", "new"];
132-
#[expect(clippy::invalid_paths)] // internal lints do not know about all external crates
133127
pub const REGEX_SET_NEW: [&str; 5] = ["regex", "re_set", "unicode", "RegexSet", "new"];
134128
/// Preferably use the diagnostic item `sym::Result` where possible
135129
pub const RESULT: [&str; 3] = ["core", "result", "Result"];

0 commit comments

Comments
 (0)