@@ -16,44 +16,27 @@ pub const APPLICABILITY_VALUES: [[&str; 3]; 4] = [
16
16
#[ cfg( feature = "internal" ) ]
17
17
pub const DIAGNOSTIC_BUILDER : [ & str ; 3 ] = [ "rustc_errors" , "diagnostic_builder" , "DiagnosticBuilder" ] ;
18
18
pub 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" ] ;
25
19
pub const ASMUT_TRAIT : [ & str ; 3 ] = [ "core" , "convert" , "AsMut" ] ;
26
20
pub 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" ] ;
30
21
pub const BTREEMAP_CONTAINS_KEY : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "BTreeMap" , "contains_key" ] ;
31
22
pub const BTREEMAP_ENTRY : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "entry" , "Entry" ] ;
32
23
pub const BTREEMAP_INSERT : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "BTreeMap" , "insert" ] ;
33
24
pub const CLONE_TRAIT_METHOD : [ & str ; 4 ] = [ "core" , "clone" , "Clone" , "clone" ] ;
34
25
pub const COW : [ & str ; 3 ] = [ "alloc" , "borrow" , "Cow" ] ;
35
26
pub 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" ] ;
37
27
pub const DEFAULT_TRAIT_METHOD : [ & str ; 4 ] = [ "core" , "default" , "Default" , "default" ] ;
38
28
pub const DEREF_MUT_TRAIT_METHOD : [ & str ; 5 ] = [ "core" , "ops" , "deref" , "DerefMut" , "deref_mut" ] ;
39
29
/// Preferably use the diagnostic item `sym::deref_method` where possible
40
30
pub const DEREF_TRAIT_METHOD : [ & str ; 5 ] = [ "core" , "ops" , "deref" , "Deref" , "deref" ] ;
41
31
pub const DIR_BUILDER : [ & str ; 3 ] = [ "std" , "fs" , "DirBuilder" ] ;
42
32
pub const DISPLAY_TRAIT : [ & str ; 3 ] = [ "core" , "fmt" , "Display" ] ;
43
- pub const DROP : [ & str ; 3 ] = [ "core" , "mem" , "drop" ] ;
44
33
#[ cfg( feature = "internal" ) ]
45
34
pub 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" ] ;
50
35
pub const EXIT : [ & str ; 3 ] = [ "std" , "process" , "exit" ] ;
51
36
pub const F32_EPSILON : [ & str ; 4 ] = [ "core" , "f32" , "<impl f32>" , "EPSILON" ] ;
52
37
pub const F64_EPSILON : [ & str ; 4 ] = [ "core" , "f64" , "<impl f64>" , "EPSILON" ] ;
53
38
pub const FILE : [ & str ; 3 ] = [ "std" , "fs" , "File" ] ;
54
39
pub 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" ] ;
57
40
pub const FROM_FROM : [ & str ; 4 ] = [ "core" , "convert" , "From" , "from" ] ;
58
41
pub const FROM_ITERATOR_METHOD : [ & str ; 6 ] = [ "core" , "iter" , "traits" , "collect" , "FromIterator" , "from_iter" ] ;
59
42
pub 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"];
85
68
pub const LATE_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "LateContext" ] ;
86
69
#[ cfg( feature = "internal" ) ]
87
70
pub 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" ] ;
96
71
pub const MUTEX_GUARD : [ & str ; 4 ] = [ "std" , "sync" , "mutex" , "MutexGuard" ] ;
97
72
pub const OPEN_OPTIONS : [ & str ; 3 ] = [ "std" , "fs" , "OpenOptions" ] ;
98
- pub const OPS_MODULE : [ & str ; 2 ] = [ "core" , "ops" ] ;
99
73
/// Preferably use the diagnostic item `sym::Option` where possible
100
74
pub const OPTION : [ & str ; 3 ] = [ "core" , "option" , "Option" ] ;
101
75
pub 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
116
90
pub const POLL : [ & str ; 4 ] = [ "core" , "task" , "poll" , "Poll" ] ;
117
91
pub const POLL_PENDING : [ & str ; 5 ] = [ "core" , "task" , "poll" , "Poll" , "Pending" ] ;
118
92
pub 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" ] ;
123
93
pub const PTR_COPY : [ & str ; 3 ] = [ "core" , "intrinsics" , "copy" ] ;
124
94
pub const PTR_COPY_NONOVERLAPPING : [ & str ; 3 ] = [ "core" , "intrinsics" , "copy_nonoverlapping" ] ;
125
95
pub const PTR_EQ : [ & str ; 3 ] = [ "core" , "ptr" , "eq" ] ;
@@ -200,8 +170,4 @@ pub const VEC_NEW: [&str; 4] = ["alloc", "vec", "Vec", "new"];
200
170
pub const VEC_RESIZE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "resize" ] ;
201
171
pub const WEAK_ARC : [ & str ; 3 ] = [ "alloc" , "sync" , "Weak" ] ;
202
172
pub 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" ] ;
207
173
pub const PTR_NON_NULL : [ & str ; 4 ] = [ "core" , "ptr" , "non_null" , "NonNull" ] ;
0 commit comments