Skip to content

Commit 9613df9

Browse files
committed
Allow invalid-paths for regex paths
1 parent 1f95515 commit 9613df9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clippy_utils/src/paths.rs

+6
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,17 @@ pub const RANGE_ARGUMENT_TRAIT: [&str; 3] = ["core", "ops", "RangeBounds"];
129129
pub const RC_PTR_EQ: [&str; 4] = ["alloc", "rc", "Rc", "ptr_eq"];
130130
pub const REFCELL_REF: [&str; 3] = ["core", "cell", "Ref"];
131131
pub const REFCELL_REFMUT: [&str; 3] = ["core", "cell", "RefMut"];
132+
#[allow(clippy::invalid_paths)] // internal lints do not know about all external crates
132133
pub const REGEX_BUILDER_NEW: [&str; 5] = ["regex", "re_builder", "unicode", "RegexBuilder", "new"];
134+
#[allow(clippy::invalid_paths)] // internal lints do not know about all external crates
133135
pub const REGEX_BYTES_BUILDER_NEW: [&str; 5] = ["regex", "re_builder", "bytes", "RegexBuilder", "new"];
136+
#[allow(clippy::invalid_paths)] // internal lints do not know about all external crates
134137
pub const REGEX_BYTES_NEW: [&str; 4] = ["regex", "re_bytes", "Regex", "new"];
138+
#[allow(clippy::invalid_paths)] // internal lints do not know about all external crates
135139
pub const REGEX_BYTES_SET_NEW: [&str; 5] = ["regex", "re_set", "bytes", "RegexSet", "new"];
140+
#[allow(clippy::invalid_paths)] // internal lints do not know about all external crates
136141
pub const REGEX_NEW: [&str; 4] = ["regex", "re_unicode", "Regex", "new"];
142+
#[allow(clippy::invalid_paths)] // internal lints do not know about all external crates
137143
pub const REGEX_SET_NEW: [&str; 5] = ["regex", "re_set", "unicode", "RegexSet", "new"];
138144
/// Preferably use the diagnostic item `sym::Result` where possible
139145
pub const RESULT: [&str; 3] = ["core", "result", "Result"];

0 commit comments

Comments
 (0)