Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit bb724f3

Browse files
committed
Sort the existing list of symbols
1 parent d4e7e5b commit bb724f3

File tree

1 file changed

+50
-48
lines changed

1 file changed

+50
-48
lines changed

clippy_utils/src/sym.rs

Lines changed: 50 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -29,53 +29,83 @@ macro_rules! generate {
2929
};
3030
}
3131

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.
3234
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,
3376
abs,
3477
align_of,
3578
ambiguous_glob_reexports,
3679
as_bytes,
37-
as_deref_mut,
3880
as_deref,
81+
as_deref_mut,
3982
as_mut,
40-
AsyncReadExt,
41-
AsyncWriteExt,
42-
BACKSLASH_SINGLE_QUOTE: r"\'",
43-
Binary,
4483
build_hasher,
4584
bytes,
4685
cargo_clippy: "cargo-clippy",
47-
Cargo_toml: "Cargo.toml",
4886
cast,
4987
chars,
50-
CLIPPY_ARGS,
51-
CLIPPY_CONF_DIR,
5288
clippy_utils,
5389
clone_into,
5490
cloned,
5591
collect,
5692
const_ptr,
5793
contains,
5894
copied,
59-
CRLF: "\r\n",
60-
Current,
6195
de,
62-
Deserialize,
6396
diagnostics,
6497
disallowed_types,
65-
DOUBLE_QUOTE: "\"",
66-
EarlyLintPass,
6798
ends_with,
6899
enum_glob_use,
69100
error,
70-
ErrorKind,
71101
exp,
72102
extend,
73-
finish_non_exhaustive,
74103
finish,
104+
finish_non_exhaustive,
75105
flat_map,
76106
for_each,
77-
from_bytes_with_nul_unchecked,
78107
from_bytes_with_nul,
108+
from_bytes_with_nul_unchecked,
79109
from_ptr,
80110
from_raw,
81111
from_ref,
@@ -89,7 +119,6 @@ generate! {
89119
int_roundings,
90120
into_bytes,
91121
into_owned,
92-
IntoIter,
93122
io,
94123
is_ascii,
95124
is_empty,
@@ -98,56 +127,40 @@ generate! {
98127
is_ok,
99128
is_some,
100129
itertools,
101-
Itertools,
102130
kw,
103131
last,
104132
lazy_static,
105-
Lazy,
106-
LF: "\n",
107-
Lint,
108133
ln,
109134
lock_api,
110135
log,
111-
LowerExp,
112-
LowerHex,
113136
macro_use_imports,
114-
map_or_else,
115137
map_or,
138+
map_or_else,
116139
max,
117-
MAX,
118140
mem,
119141
min,
120-
MIN,
121142
mode,
122143
module_name_repetitions,
123144
msrv,
124145
msrvs,
125-
MsrvStack,
126146
mut_ptr,
127147
mutex,
128148
needless_return,
129149
next_tuple,
130-
Octal,
131150
once_cell,
132-
OpenOptions,
133151
or_default,
134-
Other,
135152
parse,
136-
PathLookup,
137153
paths,
138154
powf,
139155
powi,
140156
push,
141157
redundant_pub_crate,
142158
regex,
143-
Regex,
144-
RegexBuilder,
145-
RegexSet,
146159
reserve,
147160
resize,
148161
restriction,
149-
rustc_lint_defs,
150162
rustc_lint,
163+
rustc_lint_defs,
151164
rustc_span,
152165
rustfmt_skip,
153166
rwlock,
@@ -158,17 +171,12 @@ generate! {
158171
signum,
159172
single_component_path_imports,
160173
span_lint_and_then,
161-
split_whitespace,
162174
split,
175+
split_whitespace,
163176
sqrt,
164-
Start,
165-
Step,
166177
style,
167178
symbol,
168-
Symbol,
169-
SyntaxContext,
170179
take,
171-
TBD,
172180
then_some,
173181
to_ascii_lowercase,
174182
to_ascii_uppercase,
@@ -179,21 +187,15 @@ generate! {
179187
tokio,
180188
unreachable_pub,
181189
unsafe_removed_from_name,
190+
unused,
182191
unused_braces,
183192
unused_extern_crates,
184193
unused_import_braces,
185194
unused_trait_names,
186-
unused,
187195
unwrap_err,
188196
unwrap_or_default,
189197
unwrap_or_else,
190-
UpperExp,
191-
UpperHex,
192-
V4,
193-
V6,
194-
Visitor,
195198
warnings,
196-
Weak,
197199
wildcard_imports,
198200
with_capacity,
199201
wrapping_offset,

0 commit comments

Comments
 (0)