@@ -16,44 +16,27 @@ pub const APPLICABILITY_VALUES: [[&str; 3]; 4] = [
1616#[ cfg( feature = "internal" ) ]
1717pub const DIAGNOSTIC_BUILDER : [ & str ; 3 ] = [ "rustc_errors" , "diagnostic_builder" , "DiagnosticBuilder" ] ;
1818pub const ARC_PTR_EQ : [ & str ; 4 ] = [ "alloc" , "sync" , "Arc" , "ptr_eq" ] ;
19- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
20- pub const ASSERT_EQ_MACRO : [ & str ; 3 ] = [ "core" , "macros" , "assert_eq" ] ;
21- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
22- pub const ASSERT_MACRO : [ & str ; 4 ] = [ "core" , "macros" , "builtin" , "assert" ] ;
23- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
24- pub const ASSERT_NE_MACRO : [ & str ; 3 ] = [ "core" , "macros" , "assert_ne" ] ;
2519pub const ASMUT_TRAIT : [ & str ; 3 ] = [ "core" , "convert" , "AsMut" ] ;
2620pub const ASREF_TRAIT : [ & str ; 3 ] = [ "core" , "convert" , "AsRef" ] ;
27- /// Preferably use the diagnostic item `sym::Borrow` where possible
28- pub const BORROW_TRAIT : [ & str ; 3 ] = [ "core" , "borrow" , "Borrow" ] ;
29- pub const BORROW_MUT_TRAIT : [ & str ; 3 ] = [ "core" , "borrow" , "BorrowMut" ] ;
3021pub const BTREEMAP_CONTAINS_KEY : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "BTreeMap" , "contains_key" ] ;
3122pub const BTREEMAP_ENTRY : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "entry" , "Entry" ] ;
3223pub const BTREEMAP_INSERT : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "BTreeMap" , "insert" ] ;
3324pub const CLONE_TRAIT_METHOD : [ & str ; 4 ] = [ "core" , "clone" , "Clone" , "clone" ] ;
3425pub const COW : [ & str ; 3 ] = [ "alloc" , "borrow" , "Cow" ] ;
3526pub const CSTRING_AS_C_STR : [ & str ; 5 ] = [ "std" , "ffi" , "c_str" , "CString" , "as_c_str" ] ;
36- pub const DEBUG_TRAIT : [ & str ; 3 ] = [ "core" , "fmt" , "Debug" ] ;
3727pub const DEFAULT_TRAIT_METHOD : [ & str ; 4 ] = [ "core" , "default" , "Default" , "default" ] ;
3828pub const DEREF_MUT_TRAIT_METHOD : [ & str ; 5 ] = [ "core" , "ops" , "deref" , "DerefMut" , "deref_mut" ] ;
3929/// Preferably use the diagnostic item `sym::deref_method` where possible
4030pub const DEREF_TRAIT_METHOD : [ & str ; 5 ] = [ "core" , "ops" , "deref" , "Deref" , "deref" ] ;
4131pub const DIR_BUILDER : [ & str ; 3 ] = [ "std" , "fs" , "DirBuilder" ] ;
4232pub const DISPLAY_TRAIT : [ & str ; 3 ] = [ "core" , "fmt" , "Display" ] ;
43- pub const DROP : [ & str ; 3 ] = [ "core" , "mem" , "drop" ] ;
4433#[ cfg( feature = "internal" ) ]
4534pub const EARLY_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "EarlyContext" ] ;
46- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
47- pub const EPRINT_MACRO : [ & str ; 3 ] = [ "std" , "macros" , "eprint" ] ;
48- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
49- pub const EPRINTLN_MACRO : [ & str ; 3 ] = [ "std" , "macros" , "eprintln" ] ;
5035pub const EXIT : [ & str ; 3 ] = [ "std" , "process" , "exit" ] ;
5136pub const F32_EPSILON : [ & str ; 4 ] = [ "core" , "f32" , "<impl f32>" , "EPSILON" ] ;
5237pub const F64_EPSILON : [ & str ; 4 ] = [ "core" , "f64" , "<impl f64>" , "EPSILON" ] ;
5338pub const FILE : [ & str ; 3 ] = [ "std" , "fs" , "File" ] ;
5439pub const FILE_TYPE : [ & str ; 3 ] = [ "std" , "fs" , "FileType" ] ;
55- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
56- pub const FORMAT_ARGS_MACRO : [ & str ; 4 ] = [ "core" , "macros" , "builtin" , "format_args" ] ;
5740pub const FROM_FROM : [ & str ; 4 ] = [ "core" , "convert" , "From" , "from" ] ;
5841pub const FROM_ITERATOR_METHOD : [ & str ; 6 ] = [ "core" , "iter" , "traits" , "collect" , "FromIterator" , "from_iter" ] ;
5942pub const FROM_STR_METHOD : [ & str ; 5 ] = [ "core" , "str" , "traits" , "FromStr" , "from_str" ] ;
@@ -85,17 +68,8 @@ pub const KW_MODULE: [&str; 3] = ["rustc_span", "symbol", "kw"];
8568pub const LATE_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "LateContext" ] ;
8669#[ cfg( feature = "internal" ) ]
8770pub const LINT : [ & str ; 2 ] = [ "rustc_lint_defs" , "Lint" ] ;
88- pub const MEM_DISCRIMINANT : [ & str ; 3 ] = [ "core" , "mem" , "discriminant" ] ;
89- pub const MEM_FORGET : [ & str ; 3 ] = [ "core" , "mem" , "forget" ] ;
90- pub const MEM_MANUALLY_DROP : [ & str ; 4 ] = [ "core" , "mem" , "manually_drop" , "ManuallyDrop" ] ;
91- pub const MEM_MAYBEUNINIT : [ & str ; 4 ] = [ "core" , "mem" , "maybe_uninit" , "MaybeUninit" ] ;
92- pub const MEM_MAYBEUNINIT_UNINIT : [ & str ; 5 ] = [ "core" , "mem" , "maybe_uninit" , "MaybeUninit" , "uninit" ] ;
93- pub const MEM_REPLACE : [ & str ; 3 ] = [ "core" , "mem" , "replace" ] ;
94- pub const MEM_SIZE_OF : [ & str ; 3 ] = [ "core" , "mem" , "size_of" ] ;
95- pub const MEM_SIZE_OF_VAL : [ & str ; 3 ] = [ "core" , "mem" , "size_of_val" ] ;
9671pub const MUTEX_GUARD : [ & str ; 4 ] = [ "std" , "sync" , "mutex" , "MutexGuard" ] ;
9772pub const OPEN_OPTIONS : [ & str ; 3 ] = [ "std" , "fs" , "OpenOptions" ] ;
98- pub const OPS_MODULE : [ & str ; 2 ] = [ "core" , "ops" ] ;
9973/// Preferably use the diagnostic item `sym::Option` where possible
10074pub const OPTION : [ & str ; 3 ] = [ "core" , "option" , "Option" ] ;
10175pub const OPTION_NONE : [ & str ; 4 ] = [ "core" , "option" , "Option" , "None" ] ;
@@ -116,10 +90,6 @@ pub const PERMISSIONS_FROM_MODE: [&str; 6] = ["std", "os", "unix", "fs", "Permis
11690pub const POLL : [ & str ; 4 ] = [ "core" , "task" , "poll" , "Poll" ] ;
11791pub const POLL_PENDING : [ & str ; 5 ] = [ "core" , "task" , "poll" , "Poll" , "Pending" ] ;
11892pub const POLL_READY : [ & str ; 5 ] = [ "core" , "task" , "poll" , "Poll" , "Ready" ] ;
119- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
120- pub const PRINT_MACRO : [ & str ; 3 ] = [ "std" , "macros" , "print" ] ;
121- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
122- pub const PRINTLN_MACRO : [ & str ; 3 ] = [ "std" , "macros" , "println" ] ;
12393pub const PTR_COPY : [ & str ; 3 ] = [ "core" , "intrinsics" , "copy" ] ;
12494pub const PTR_COPY_NONOVERLAPPING : [ & str ; 3 ] = [ "core" , "intrinsics" , "copy_nonoverlapping" ] ;
12595pub const PTR_EQ : [ & str ; 3 ] = [ "core" , "ptr" , "eq" ] ;
@@ -200,8 +170,4 @@ pub const VEC_NEW: [&str; 4] = ["alloc", "vec", "Vec", "new"];
200170pub const VEC_RESIZE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "resize" ] ;
201171pub const WEAK_ARC : [ & str ; 3 ] = [ "alloc" , "sync" , "Weak" ] ;
202172pub const WEAK_RC : [ & str ; 3 ] = [ "alloc" , "rc" , "Weak" ] ;
203- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
204- pub const WRITE_MACRO : [ & str ; 3 ] = [ "core" , "macros" , "write" ] ;
205- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
206- pub const WRITELN_MACRO : [ & str ; 3 ] = [ "core" , "macros" , "writeln" ] ;
207173pub const PTR_NON_NULL : [ & str ; 4 ] = [ "core" , "ptr" , "non_null" , "NonNull" ] ;
0 commit comments