@@ -21,17 +21,11 @@ pub const ASMUT_TRAIT: [&str; 3] = ["core", "convert", "AsMut"];
2121pub const ASREF_TRAIT : [ & str ; 3 ] = [ "core" , "convert" , "AsRef" ] ;
2222pub ( super ) const BEGIN_PANIC : [ & str ; 3 ] = [ "std" , "panicking" , "begin_panic" ] ;
2323pub ( 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" ] ;
2624/// Preferably use the diagnostic item `sym::Borrow` where possible
2725pub 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" ] ;
3026pub const BTREEMAP_CONTAINS_KEY : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "BTreeMap" , "contains_key" ] ;
3127pub const BTREEMAP_ENTRY : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "entry" , "Entry" ] ;
3228pub 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" ] ;
3529pub const CLONE_TRAIT_METHOD : [ & str ; 4 ] = [ "core" , "clone" , "Clone" , "clone" ] ;
3630pub const CMP_MAX : [ & str ; 3 ] = [ "core" , "cmp" , "max" ] ;
3731pub const CMP_MIN : [ & str ; 3 ] = [ "core" , "cmp" , "min" ] ;
@@ -59,13 +53,9 @@ pub const FROM_ITERATOR_METHOD: [&str; 6] = ["core", "iter", "traits", "collect"
5953pub const FROM_STR_METHOD : [ & str ; 5 ] = [ "core" , "str" , "traits" , "FromStr" , "from_str" ] ;
6054pub const FUTURE_FROM_GENERATOR : [ & str ; 3 ] = [ "core" , "future" , "from_generator" ] ;
6155pub 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" ] ;
6456pub const HASHMAP_CONTAINS_KEY : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" , "contains_key" ] ;
6557pub const HASHMAP_ENTRY : [ & str ; 5 ] = [ "std" , "collections" , "hash" , "map" , "Entry" ] ;
6658pub 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" ] ;
6959#[ cfg( feature = "internal-lints" ) ]
7060pub const IDENT : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "Ident" ] ;
7161#[ cfg( feature = "internal-lints" ) ]
@@ -83,8 +73,6 @@ pub const KW_MODULE: [&str; 3] = ["rustc_span", "symbol", "kw"];
8373#[ cfg( feature = "internal-lints" ) ]
8474pub const LATE_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "LateContext" ] ;
8575pub 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" ] ;
8876#[ cfg( any( feature = "internal-lints" , feature = "metadata-collector-lint" ) ) ]
8977pub const LINT : [ & str ; 2 ] = [ "rustc_lint_defs" , "Lint" ] ;
9078pub const MEM_DISCRIMINANT : [ & str ; 3 ] = [ "core" , "mem" , "discriminant" ] ;
@@ -182,14 +170,10 @@ pub const SYNTAX_CONTEXT: [&str; 3] = ["rustc_span", "hygiene", "SyntaxContext"]
182170pub const TO_OWNED_METHOD : [ & str ; 4 ] = [ "alloc" , "borrow" , "ToOwned" , "to_owned" ] ;
183171pub const TO_STRING_METHOD : [ & str ; 4 ] = [ "alloc" , "string" , "ToString" , "to_string" ] ;
184172pub const TRY_FROM : [ & str ; 4 ] = [ "core" , "convert" , "TryFrom" , "try_from" ] ;
185-
186- pub const VEC : [ & str ; 3 ] = [ "alloc" , "vec" , "Vec" ] ;
187173pub const VEC_AS_MUT_SLICE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "as_mut_slice" ] ;
188174pub const VEC_AS_SLICE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "as_slice" ] ;
189- pub const VEC_DEQUE : [ & str ; 4 ] = [ "alloc" , "collections" , "vec_deque" , "VecDeque" ] ;
190175pub const VEC_FROM_ELEM : [ & str ; 3 ] = [ "alloc" , "vec" , "from_elem" ] ;
191176pub const VEC_NEW : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "new" ] ;
192177pub const VEC_RESIZE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "resize" ] ;
193178pub const WEAK_ARC : [ & str ; 3 ] = [ "alloc" , "sync" , "Weak" ] ;
194179pub const WEAK_RC : [ & str ; 3 ] = [ "alloc" , "rc" , "Weak" ] ;
195- pub const WRITE_BYTES : [ & str ; 3 ] = [ "core" , "intrinsics" , "write_bytes" ] ;
0 commit comments