@@ -21,17 +21,11 @@ pub const ASMUT_TRAIT: [&str; 3] = ["core", "convert", "AsMut"];
21
21
pub const ASREF_TRAIT : [ & str ; 3 ] = [ "core" , "convert" , "AsRef" ] ;
22
22
pub ( super ) const BEGIN_PANIC : [ & str ; 3 ] = [ "std" , "panicking" , "begin_panic" ] ;
23
23
pub ( super ) const BEGIN_PANIC_FMT : [ & str ; 3 ] = [ "std" , "panicking" , "begin_panic_fmt" ] ;
24
- /// Preferably use the diagnostic item `sym::BinaryHeap` where possible
25
- pub const BINARY_HEAP : [ & str ; 4 ] = [ "alloc" , "collections" , "binary_heap" , "BinaryHeap" ] ;
26
24
/// Preferably use the diagnostic item `sym::Borrow` where possible
27
25
pub const BORROW_TRAIT : [ & str ; 3 ] = [ "core" , "borrow" , "Borrow" ] ;
28
- /// Preferably use the diagnostic item `sym::BTreeMap` where possible
29
- pub const BTREEMAP : [ & str ; 5 ] = [ "alloc" , "collections" , "btree" , "map" , "BTreeMap" ] ;
30
26
pub const BTREEMAP_CONTAINS_KEY : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "BTreeMap" , "contains_key" ] ;
31
27
pub const BTREEMAP_ENTRY : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "entry" , "Entry" ] ;
32
28
pub const BTREEMAP_INSERT : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "BTreeMap" , "insert" ] ;
33
- /// Preferably use the diagnostic item `sym::BTreeSet` where possible
34
- pub const BTREESET : [ & str ; 5 ] = [ "alloc" , "collections" , "btree" , "set" , "BTreeSet" ] ;
35
29
pub const CLONE_TRAIT_METHOD : [ & str ; 4 ] = [ "core" , "clone" , "Clone" , "clone" ] ;
36
30
pub const CMP_MAX : [ & str ; 3 ] = [ "core" , "cmp" , "max" ] ;
37
31
pub const CMP_MIN : [ & str ; 3 ] = [ "core" , "cmp" , "min" ] ;
@@ -59,13 +53,9 @@ pub const FROM_ITERATOR_METHOD: [&str; 6] = ["core", "iter", "traits", "collect"
59
53
pub const FROM_STR_METHOD : [ & str ; 5 ] = [ "core" , "str" , "traits" , "FromStr" , "from_str" ] ;
60
54
pub const FUTURE_FROM_GENERATOR : [ & str ; 3 ] = [ "core" , "future" , "from_generator" ] ;
61
55
pub const HASH : [ & str ; 3 ] = [ "core" , "hash" , "Hash" ] ;
62
- /// Preferably use the diagnostic item `sym::hashmap_type` where possible
63
- pub const HASHMAP : [ & str ; 5 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" ] ;
64
56
pub const HASHMAP_CONTAINS_KEY : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" , "contains_key" ] ;
65
57
pub const HASHMAP_ENTRY : [ & str ; 5 ] = [ "std" , "collections" , "hash" , "map" , "Entry" ] ;
66
58
pub const HASHMAP_INSERT : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" , "insert" ] ;
67
- /// Preferably use the diagnostic item `sym::hashset_type` where possible
68
- pub const HASHSET : [ & str ; 5 ] = [ "std" , "collections" , "hash" , "set" , "HashSet" ] ;
69
59
#[ cfg( feature = "internal-lints" ) ]
70
60
pub const IDENT : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "Ident" ] ;
71
61
#[ cfg( feature = "internal-lints" ) ]
@@ -83,8 +73,6 @@ pub const KW_MODULE: [&str; 3] = ["rustc_span", "symbol", "kw"];
83
73
#[ cfg( feature = "internal-lints" ) ]
84
74
pub const LATE_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "LateContext" ] ;
85
75
pub const LIBC_STRLEN : [ & str ; 2 ] = [ "libc" , "strlen" ] ;
86
- /// Preferably use the diagnostic item `sym::LinkedList` where possible
87
- pub const LINKED_LIST : [ & str ; 4 ] = [ "alloc" , "collections" , "linked_list" , "LinkedList" ] ;
88
76
#[ cfg( any( feature = "internal-lints" , feature = "metadata-collector-lint" ) ) ]
89
77
pub const LINT : [ & str ; 2 ] = [ "rustc_lint_defs" , "Lint" ] ;
90
78
pub const MEM_DISCRIMINANT : [ & str ; 3 ] = [ "core" , "mem" , "discriminant" ] ;
@@ -182,14 +170,10 @@ pub const SYNTAX_CONTEXT: [&str; 3] = ["rustc_span", "hygiene", "SyntaxContext"]
182
170
pub const TO_OWNED_METHOD : [ & str ; 4 ] = [ "alloc" , "borrow" , "ToOwned" , "to_owned" ] ;
183
171
pub const TO_STRING_METHOD : [ & str ; 4 ] = [ "alloc" , "string" , "ToString" , "to_string" ] ;
184
172
pub const TRY_FROM : [ & str ; 4 ] = [ "core" , "convert" , "TryFrom" , "try_from" ] ;
185
-
186
- pub const VEC : [ & str ; 3 ] = [ "alloc" , "vec" , "Vec" ] ;
187
173
pub const VEC_AS_MUT_SLICE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "as_mut_slice" ] ;
188
174
pub const VEC_AS_SLICE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "as_slice" ] ;
189
- pub const VEC_DEQUE : [ & str ; 4 ] = [ "alloc" , "collections" , "vec_deque" , "VecDeque" ] ;
190
175
pub const VEC_FROM_ELEM : [ & str ; 3 ] = [ "alloc" , "vec" , "from_elem" ] ;
191
176
pub const VEC_NEW : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "new" ] ;
192
177
pub const VEC_RESIZE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "resize" ] ;
193
178
pub const WEAK_ARC : [ & str ; 3 ] = [ "alloc" , "sync" , "Weak" ] ;
194
179
pub const WEAK_RC : [ & str ; 3 ] = [ "alloc" , "rc" , "Weak" ] ;
195
- pub const WRITE_BYTES : [ & str ; 3 ] = [ "core" , "intrinsics" , "write_bytes" ] ;
0 commit comments