@@ -11,11 +11,14 @@ pub const ASREF_TRAIT: [&str; 3] = ["core", "convert", "AsRef"];
11
11
pub ( super ) const BEGIN_PANIC : [ & str ; 3 ] = [ "std" , "panicking" , "begin_panic" ] ;
12
12
pub ( super ) const BEGIN_PANIC_FMT : [ & str ; 3 ] = [ "std" , "panicking" , "begin_panic_fmt" ] ;
13
13
pub const BINARY_HEAP : [ & str ; 4 ] = [ "alloc" , "collections" , "binary_heap" , "BinaryHeap" ] ;
14
+ pub const BINARY_HEAP_NEW : [ & str ; 5 ] = [ "alloc" , "collections" , "binary_heap" , "BinaryHeap" , "new" ] ;
14
15
pub const BORROW_TRAIT : [ & str ; 3 ] = [ "core" , "borrow" , "Borrow" ] ;
15
16
pub const BOX : [ & str ; 3 ] = [ "alloc" , "boxed" , "Box" ] ;
16
17
pub const BTREEMAP : [ & str ; 5 ] = [ "alloc" , "collections" , "btree" , "map" , "BTreeMap" ] ;
18
+ pub const BTREEMAP_NEW : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "BTreeMap" , "new" ] ;
17
19
pub const BTREEMAP_ENTRY : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "entry" , "Entry" ] ;
18
20
pub const BTREESET : [ & str ; 5 ] = [ "alloc" , "collections" , "btree" , "set" , "BTreeSet" ] ;
21
+ pub const BTREESET_NEW : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "set" , "BTreeSet" , "new" ] ;
19
22
pub const CLONE_TRAIT : [ & str ; 3 ] = [ "core" , "clone" , "Clone" ] ;
20
23
pub const CLONE_TRAIT_METHOD : [ & str ; 4 ] = [ "core" , "clone" , "Clone" , "clone" ] ;
21
24
pub const CMP_MAX : [ & str ; 3 ] = [ "core" , "cmp" , "max" ] ;
@@ -51,8 +54,10 @@ pub const FROM_ITERATOR: [&str; 5] = ["core", "iter", "traits", "collect", "From
51
54
pub const FUTURE_FROM_GENERATOR : [ & str ; 3 ] = [ "core" , "future" , "from_generator" ] ;
52
55
pub const HASH : [ & str ; 3 ] = [ "core" , "hash" , "Hash" ] ;
53
56
pub const HASHMAP : [ & str ; 5 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" ] ;
57
+ pub const HASHMAP_NEW : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" , "new" ] ;
54
58
pub const HASHMAP_ENTRY : [ & str ; 5 ] = [ "std" , "collections" , "hash" , "map" , "Entry" ] ;
55
59
pub const HASHSET : [ & str ; 5 ] = [ "std" , "collections" , "hash" , "set" , "HashSet" ] ;
60
+ pub const HASHSET_NEW : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "set" , "HashSet" , "new" ] ;
56
61
#[ cfg( feature = "internal-lints" ) ]
57
62
pub const IDENT : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "Ident" ] ;
58
63
#[ cfg( feature = "internal-lints" ) ]
@@ -72,6 +77,7 @@ pub const KW_MODULE: [&str; 3] = ["rustc_span", "symbol", "kw"];
72
77
#[ cfg( feature = "internal-lints" ) ]
73
78
pub const LATE_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "LateContext" ] ;
74
79
pub const LINKED_LIST : [ & str ; 4 ] = [ "alloc" , "collections" , "linked_list" , "LinkedList" ] ;
80
+ pub const LINKED_LIST_NEW : [ & str ; 5 ] = [ "alloc" , "collections" , "linked_list" , "LinkedList" , "new" ] ;
75
81
#[ cfg( feature = "internal-lints" ) ]
76
82
pub const LINT : [ & str ; 2 ] = [ "rustc_lint_defs" , "Lint" ] ;
77
83
pub const MEM_DISCRIMINANT : [ & str ; 3 ] = [ "core" , "mem" , "discriminant" ] ;
@@ -144,6 +150,7 @@ pub const STD_FS_CREATE_DIR: [&str; 3] = ["std", "fs", "create_dir"];
144
150
pub const STD_MEM_TRANSMUTE : [ & str ; 3 ] = [ "std" , "mem" , "transmute" ] ;
145
151
pub const STD_PTR_NULL : [ & str ; 3 ] = [ "std" , "ptr" , "null" ] ;
146
152
pub const STRING : [ & str ; 3 ] = [ "alloc" , "string" , "String" ] ;
153
+ pub const STRING_NEW : [ & str ; 4 ] = [ "alloc" , "string" , "String" , "new" ] ;
147
154
pub const STRING_AS_MUT_STR : [ & str ; 4 ] = [ "alloc" , "string" , "String" , "as_mut_str" ] ;
148
155
pub const STRING_AS_STR : [ & str ; 4 ] = [ "alloc" , "string" , "String" , "as_str" ] ;
149
156
pub const STR_ENDS_WITH : [ & str ; 4 ] = [ "core" , "str" , "<impl str>" , "ends_with" ] ;
@@ -173,6 +180,7 @@ pub const VEC: [&str; 3] = ["alloc", "vec", "Vec"];
173
180
pub const VEC_AS_MUT_SLICE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "as_mut_slice" ] ;
174
181
pub const VEC_AS_SLICE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "as_slice" ] ;
175
182
pub const VEC_DEQUE : [ & str ; 4 ] = [ "alloc" , "collections" , "vec_deque" , "VecDeque" ] ;
183
+ pub const VEC_DEQUE_NEW : [ & str ; 5 ] = [ "alloc" , "collections" , "vec_deque" , "VecDeque" , "new" ] ;
176
184
pub const VEC_FROM_ELEM : [ & str ; 3 ] = [ "alloc" , "vec" , "from_elem" ] ;
177
185
pub const VEC_NEW : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "new" ] ;
178
186
pub const VEC_RESIZE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "resize" ] ;
0 commit comments