44//! Whenever possible, please consider diagnostic items over hardcoded paths.
55//! See <https://github.com/rust-lang/rust-clippy/issues/5393> for more information.
66
7- pub const ANY_TRAIT : [ & str ; 3 ] = [ "core" , "any" , "Any" ] ;
87#[ cfg( feature = "internal" ) ]
98pub const APPLICABILITY : [ & str ; 2 ] = [ "rustc_lint_defs" , "Applicability" ] ;
109#[ cfg( feature = "internal" ) ]
@@ -32,8 +31,6 @@ pub const BTREEMAP_CONTAINS_KEY: [&str; 6] = ["alloc", "collections", "btree", "
3231pub const BTREEMAP_ENTRY : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "entry" , "Entry" ] ;
3332pub const BTREEMAP_INSERT : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "BTreeMap" , "insert" ] ;
3433pub const CLONE_TRAIT_METHOD : [ & str ; 4 ] = [ "core" , "clone" , "Clone" , "clone" ] ;
35- pub const CMP_MAX : [ & str ; 3 ] = [ "core" , "cmp" , "max" ] ;
36- pub const CMP_MIN : [ & str ; 3 ] = [ "core" , "cmp" , "min" ] ;
3734pub const COW : [ & str ; 3 ] = [ "alloc" , "borrow" , "Cow" ] ;
3835pub const CSTRING_AS_C_STR : [ & str ; 5 ] = [ "std" , "ffi" , "c_str" , "CString" , "as_c_str" ] ;
3936pub const DEFAULT_TRAIT_METHOD : [ & str ; 4 ] = [ "core" , "default" , "Default" , "default" ] ;
@@ -42,9 +39,7 @@ pub const DEREF_MUT_TRAIT_METHOD: [&str; 5] = ["core", "ops", "deref", "DerefMut
4239pub const DEREF_TRAIT_METHOD : [ & str ; 5 ] = [ "core" , "ops" , "deref" , "Deref" , "deref" ] ;
4340pub const DIR_BUILDER : [ & str ; 3 ] = [ "std" , "fs" , "DirBuilder" ] ;
4441pub const DISPLAY_TRAIT : [ & str ; 3 ] = [ "core" , "fmt" , "Display" ] ;
45- pub const DOUBLE_ENDED_ITERATOR : [ & str ; 4 ] = [ "core" , "iter" , "traits" , "DoubleEndedIterator" ] ;
4642pub const DROP : [ & str ; 3 ] = [ "core" , "mem" , "drop" ] ;
47- pub const DURATION : [ & str ; 3 ] = [ "core" , "time" , "Duration" ] ;
4843#[ cfg( feature = "internal" ) ]
4944pub const EARLY_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "EarlyContext" ] ;
5045#[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
@@ -59,15 +54,13 @@ pub const FILE_TYPE: [&str; 3] = ["std", "fs", "FileType"];
5954#[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
6055pub const FORMAT_ARGS_MACRO : [ & str ; 4 ] = [ "core" , "macros" , "builtin" , "format_args" ] ;
6156pub const FROM_FROM : [ & str ; 4 ] = [ "core" , "convert" , "From" , "from" ] ;
62- pub const FROM_ITERATOR : [ & str ; 5 ] = [ "core" , "iter" , "traits" , "collect" , "FromIterator" ] ;
6357pub const FROM_ITERATOR_METHOD : [ & str ; 6 ] = [ "core" , "iter" , "traits" , "collect" , "FromIterator" , "from_iter" ] ;
6458pub const FROM_STR_METHOD : [ & str ; 5 ] = [ "core" , "str" , "traits" , "FromStr" , "from_str" ] ;
6559pub const FUTURE_FROM_GENERATOR : [ & str ; 3 ] = [ "core" , "future" , "from_generator" ] ;
6660#[ allow( clippy:: invalid_paths) ] // internal lints do not know about all external crates
6761pub const FUTURES_IO_ASYNCREADEXT : [ & str ; 3 ] = [ "futures_util" , "io" , "AsyncReadExt" ] ;
6862#[ allow( clippy:: invalid_paths) ] // internal lints do not know about all external crates
6963pub const FUTURES_IO_ASYNCWRITEEXT : [ & str ; 3 ] = [ "futures_util" , "io" , "AsyncWriteExt" ] ;
70- pub const HASH : [ & str ; 3 ] = [ "core" , "hash" , "Hash" ] ;
7164pub const HASHMAP_CONTAINS_KEY : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" , "contains_key" ] ;
7265pub const HASHMAP_ENTRY : [ & str ; 5 ] = [ "std" , "collections" , "hash" , "map" , "Entry" ] ;
7366pub const HASHMAP_INSERT : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" , "insert" ] ;
0 commit comments