1#![allow(non_upper_case_globals)]
2
3use rustc_span::symbol::PREDEFINED_SYMBOLS_COUNT;
4
5#[doc(no_inline)]
6pub use rustc_span::sym::*;
7
8macro_rules! val {
9 ($name:ident) => {
10 stringify!($name)
11 };
12 ($name:ident $value:literal) => {
13 $value
14 };
15}
16
17macro_rules! generate {
18 ($($name:ident $(: $value:literal)? ,)*) => {
19 pub const EXTRA_SYMBOLS: &[&str] = &[
21 $(
22 val!($name $($value)?),
23 )*
24 ];
25
26 $(
27 pub const $name: rustc_span::Symbol = rustc_span::Symbol::new(PREDEFINED_SYMBOLS_COUNT + ${index()});
28 )*
29 };
30}
31
32generate! {
33 abs,
34 align_of,
35 ambiguous_glob_reexports,
36 as_bytes,
37 as_deref_mut,
38 as_deref,
39 as_mut,
40 AsyncReadExt,
41 AsyncWriteExt,
42 BACKSLASH_SINGLE_QUOTE: r"\'",
43 Binary,
44 build_hasher,
45 bytes,
46 cargo_clippy: "cargo-clippy",
47 Cargo_toml: "Cargo.toml",
48 cast,
49 chars,
50 CLIPPY_ARGS,
51 CLIPPY_CONF_DIR,
52 clippy_utils,
53 clone_into,
54 cloned,
55 collect,
56 const_ptr,
57 contains,
58 copied,
59 CRLF: "\r\n",
60 Current,
61 de,
62 Deserialize,
63 diagnostics,
64 disallowed_types,
65 DOUBLE_QUOTE: "\"",
66 EarlyLintPass,
67 ends_with,
68 enum_glob_use,
69 error,
70 ErrorKind,
71 exp,
72 extend,
73 finish_non_exhaustive,
74 finish,
75 flat_map,
76 for_each,
77 from_bytes_with_nul_unchecked,
78 from_bytes_with_nul,
79 from_ptr,
80 from_raw,
81 from_ref,
82 from_str_radix,
83 fs,
84 futures_util,
85 get,
86 hidden_glob_reexports,
87 hygiene,
88 insert,
89 int_roundings,
90 into_bytes,
91 into_owned,
92 IntoIter,
93 io,
94 is_ascii,
95 is_empty,
96 is_err,
97 is_none,
98 is_ok,
99 is_some,
100 itertools,
101 Itertools,
102 kw,
103 last,
104 lazy_static,
105 Lazy,
106 LF: "\n",
107 Lint,
108 ln,
109 lock_api,
110 log,
111 LowerExp,
112 LowerHex,
113 macro_use_imports,
114 map_or_else,
115 map_or,
116 max,
117 MAX,
118 mem,
119 min,
120 MIN,
121 mode,
122 module_name_repetitions,
123 msrv,
124 msrvs,
125 MsrvStack,
126 mut_ptr,
127 mutex,
128 needless_return,
129 next_tuple,
130 Octal,
131 once_cell,
132 OpenOptions,
133 or_default,
134 Other,
135 parse,
136 PathLookup,
137 paths,
138 powf,
139 powi,
140 push,
141 redundant_pub_crate,
142 regex,
143 Regex,
144 RegexBuilder,
145 RegexSet,
146 reserve,
147 resize,
148 restriction,
149 rustc_lint_defs,
150 rustc_lint,
151 rustc_span,
152 rustfmt_skip,
153 rwlock,
154 serde,
155 set_len,
156 set_mode,
157 set_readonly,
158 signum,
159 single_component_path_imports,
160 span_lint_and_then,
161 split_whitespace,
162 split,
163 sqrt,
164 Start,
165 Step,
166 style,
167 symbol,
168 Symbol,
169 SyntaxContext,
170 take,
171 TBD,
172 then_some,
173 to_ascii_lowercase,
174 to_ascii_uppercase,
175 to_digit,
176 to_lowercase,
177 to_owned,
178 to_uppercase,
179 tokio,
180 unreachable_pub,
181 unsafe_removed_from_name,
182 unused_braces,
183 unused_extern_crates,
184 unused_import_braces,
185 unused_trait_names,
186 unused,
187 unwrap_err,
188 unwrap_or_default,
189 unwrap_or_else,
190 UpperExp,
191 UpperHex,
192 V4,
193 V6,
194 Visitor,
195 warnings,
196 Weak,
197 wildcard_imports,
198 with_capacity,
199 wrapping_offset,
200}