This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +50
-48
lines changed Expand file tree Collapse file tree 1 file changed +50
-48
lines changed Original file line number Diff line number Diff line change @@ -29,53 +29,83 @@ macro_rules! generate {
29
29
} ;
30
30
}
31
31
32
+ // List of extra symbols to be included in Clippy (for example, as `sym::ambiguous_glob_reexports`).
33
+ // An alternative content can be specified using a colon after the symbol name.
32
34
generate ! {
35
+ AsyncReadExt ,
36
+ AsyncWriteExt ,
37
+ BACKSLASH_SINGLE_QUOTE : r"\'" ,
38
+ Binary ,
39
+ CLIPPY_ARGS ,
40
+ CLIPPY_CONF_DIR ,
41
+ CRLF : "\r \n " ,
42
+ Cargo_toml : "Cargo.toml" ,
43
+ Current ,
44
+ DOUBLE_QUOTE : "\" " ,
45
+ Deserialize ,
46
+ EarlyLintPass ,
47
+ ErrorKind ,
48
+ IntoIter ,
49
+ Itertools ,
50
+ LF : "\n " ,
51
+ Lazy ,
52
+ Lint ,
53
+ LowerExp ,
54
+ LowerHex ,
55
+ MAX ,
56
+ MIN ,
57
+ MsrvStack ,
58
+ Octal ,
59
+ OpenOptions ,
60
+ Other ,
61
+ PathLookup ,
62
+ Regex ,
63
+ RegexBuilder ,
64
+ RegexSet ,
65
+ Start ,
66
+ Step ,
67
+ Symbol ,
68
+ SyntaxContext ,
69
+ TBD ,
70
+ UpperExp ,
71
+ UpperHex ,
72
+ V4 ,
73
+ V6 ,
74
+ Visitor ,
75
+ Weak ,
33
76
abs,
34
77
align_of,
35
78
ambiguous_glob_reexports,
36
79
as_bytes,
37
- as_deref_mut,
38
80
as_deref,
81
+ as_deref_mut,
39
82
as_mut,
40
- AsyncReadExt ,
41
- AsyncWriteExt ,
42
- BACKSLASH_SINGLE_QUOTE : r"\'" ,
43
- Binary ,
44
83
build_hasher,
45
84
bytes,
46
85
cargo_clippy: "cargo-clippy" ,
47
- Cargo_toml : "Cargo.toml" ,
48
86
cast,
49
87
chars,
50
- CLIPPY_ARGS ,
51
- CLIPPY_CONF_DIR ,
52
88
clippy_utils,
53
89
clone_into,
54
90
cloned,
55
91
collect,
56
92
const_ptr,
57
93
contains,
58
94
copied,
59
- CRLF : "\r \n " ,
60
- Current ,
61
95
de,
62
- Deserialize ,
63
96
diagnostics,
64
97
disallowed_types,
65
- DOUBLE_QUOTE : "\" " ,
66
- EarlyLintPass ,
67
98
ends_with,
68
99
enum_glob_use,
69
100
error,
70
- ErrorKind ,
71
101
exp,
72
102
extend,
73
- finish_non_exhaustive,
74
103
finish,
104
+ finish_non_exhaustive,
75
105
flat_map,
76
106
for_each,
77
- from_bytes_with_nul_unchecked,
78
107
from_bytes_with_nul,
108
+ from_bytes_with_nul_unchecked,
79
109
from_ptr,
80
110
from_raw,
81
111
from_ref,
@@ -89,7 +119,6 @@ generate! {
89
119
int_roundings,
90
120
into_bytes,
91
121
into_owned,
92
- IntoIter ,
93
122
io,
94
123
is_ascii,
95
124
is_empty,
@@ -98,56 +127,40 @@ generate! {
98
127
is_ok,
99
128
is_some,
100
129
itertools,
101
- Itertools ,
102
130
kw,
103
131
last,
104
132
lazy_static,
105
- Lazy ,
106
- LF : "\n " ,
107
- Lint ,
108
133
ln,
109
134
lock_api,
110
135
log,
111
- LowerExp ,
112
- LowerHex ,
113
136
macro_use_imports,
114
- map_or_else,
115
137
map_or,
138
+ map_or_else,
116
139
max,
117
- MAX ,
118
140
mem,
119
141
min,
120
- MIN ,
121
142
mode,
122
143
module_name_repetitions,
123
144
msrv,
124
145
msrvs,
125
- MsrvStack ,
126
146
mut_ptr,
127
147
mutex,
128
148
needless_return,
129
149
next_tuple,
130
- Octal ,
131
150
once_cell,
132
- OpenOptions ,
133
151
or_default,
134
- Other ,
135
152
parse,
136
- PathLookup ,
137
153
paths,
138
154
powf,
139
155
powi,
140
156
push,
141
157
redundant_pub_crate,
142
158
regex,
143
- Regex ,
144
- RegexBuilder ,
145
- RegexSet ,
146
159
reserve,
147
160
resize,
148
161
restriction,
149
- rustc_lint_defs,
150
162
rustc_lint,
163
+ rustc_lint_defs,
151
164
rustc_span,
152
165
rustfmt_skip,
153
166
rwlock,
@@ -158,17 +171,12 @@ generate! {
158
171
signum,
159
172
single_component_path_imports,
160
173
span_lint_and_then,
161
- split_whitespace,
162
174
split,
175
+ split_whitespace,
163
176
sqrt,
164
- Start ,
165
- Step ,
166
177
style,
167
178
symbol,
168
- Symbol ,
169
- SyntaxContext ,
170
179
take,
171
- TBD ,
172
180
then_some,
173
181
to_ascii_lowercase,
174
182
to_ascii_uppercase,
@@ -179,21 +187,15 @@ generate! {
179
187
tokio,
180
188
unreachable_pub,
181
189
unsafe_removed_from_name,
190
+ unused,
182
191
unused_braces,
183
192
unused_extern_crates,
184
193
unused_import_braces,
185
194
unused_trait_names,
186
- unused,
187
195
unwrap_err,
188
196
unwrap_or_default,
189
197
unwrap_or_else,
190
- UpperExp ,
191
- UpperHex ,
192
- V4 ,
193
- V6 ,
194
- Visitor ,
195
198
warnings,
196
- Weak ,
197
199
wildcard_imports,
198
200
with_capacity,
199
201
wrapping_offset,
You can’t perform that action at this time.
0 commit comments