@@ -73,8 +73,6 @@ pub const IDENT_AS_STR: [&str; 4] = ["rustc_span", "symbol", "Ident", "as_str"];
73
73
pub const INDEX : [ & str ; 3 ] = [ "core" , "ops" , "Index" ] ;
74
74
pub const INDEX_MUT : [ & str ; 3 ] = [ "core" , "ops" , "IndexMut" ] ;
75
75
pub const INSERT_STR : [ & str ; 4 ] = [ "alloc" , "string" , "String" , "insert_str" ] ;
76
- pub const INTO : [ & str ; 3 ] = [ "core" , "convert" , "Into" ] ;
77
- pub const INTO_ITERATOR : [ & str ; 5 ] = [ "core" , "iter" , "traits" , "collect" , "IntoIterator" ] ;
78
76
pub const IO_READ : [ & str ; 3 ] = [ "std" , "io" , "Read" ] ;
79
77
pub const IO_WRITE : [ & str ; 3 ] = [ "std" , "io" , "Write" ] ;
80
78
pub const IPADDR_V4 : [ & str ; 5 ] = [ "std" , "net" , "ip" , "IpAddr" , "V4" ] ;
@@ -85,6 +83,7 @@ pub const KW_MODULE: [&str; 3] = ["rustc_span", "symbol", "kw"];
85
83
#[ cfg( feature = "internal-lints" ) ]
86
84
pub const LATE_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "LateContext" ] ;
87
85
pub const LIBC_STRLEN : [ & str ; 2 ] = [ "libc" , "strlen" ] ;
86
+ /// Preferably use the diagnostic item `sym::LinkedList` where possible
88
87
pub const LINKED_LIST : [ & str ; 4 ] = [ "alloc" , "collections" , "linked_list" , "LinkedList" ] ;
89
88
#[ cfg( any( feature = "internal-lints" , feature = "metadata-collector-lint" ) ) ]
90
89
pub const LINT : [ & str ; 2 ] = [ "rustc_lint_defs" , "Lint" ] ;
@@ -99,6 +98,7 @@ pub const MEM_SIZE_OF_VAL: [&str; 3] = ["core", "mem", "size_of_val"];
99
98
pub const MUTEX_GUARD : [ & str ; 4 ] = [ "std" , "sync" , "mutex" , "MutexGuard" ] ;
100
99
pub const OPEN_OPTIONS : [ & str ; 3 ] = [ "std" , "fs" , "OpenOptions" ] ;
101
100
pub const OPS_MODULE : [ & str ; 2 ] = [ "core" , "ops" ] ;
101
+ /// Preferably use the diagnostic item `sym::option_type` where possible
102
102
pub const OPTION : [ & str ; 3 ] = [ "core" , "option" , "Option" ] ;
103
103
pub const OPTION_NONE : [ & str ; 4 ] = [ "core" , "option" , "Option" , "None" ] ;
104
104
pub const OPTION_SOME : [ & str ; 4 ] = [ "core" , "option" , "Option" , "Some" ] ;
@@ -122,8 +122,6 @@ pub const POLL_READY: [&str; 5] = ["core", "task", "poll", "Poll", "Ready"];
122
122
pub const PTR_COPY : [ & str ; 3 ] = [ "core" , "intrinsics" , "copy" ] ;
123
123
pub const PTR_COPY_NONOVERLAPPING : [ & str ; 3 ] = [ "core" , "intrinsics" , "copy_nonoverlapping" ] ;
124
124
pub const PTR_EQ : [ & str ; 3 ] = [ "core" , "ptr" , "eq" ] ;
125
- pub const PTR_NULL : [ & str ; 3 ] = [ "core" , "ptr" , "null" ] ;
126
- pub const PTR_NULL_MUT : [ & str ; 3 ] = [ "core" , "ptr" , "null_mut" ] ;
127
125
pub const PTR_SLICE_FROM_RAW_PARTS : [ & str ; 3 ] = [ "core" , "ptr" , "slice_from_raw_parts" ] ;
128
126
pub const PTR_SLICE_FROM_RAW_PARTS_MUT : [ & str ; 3 ] = [ "core" , "ptr" , "slice_from_raw_parts_mut" ] ;
129
127
pub const PTR_SWAP_NONOVERLAPPING : [ & str ; 3 ] = [ "core" , "ptr" , "swap_nonoverlapping" ] ;
0 commit comments