Skip to content

Commit 03ee0b8

Browse files
committed
XXX: rustfmt RUST_KW fixes, hmm
XXX: would be better to do this via AllKeywords
1 parent 062451a commit 03ee0b8

File tree

1 file changed

+12
-4
lines changed
  • src/tools/rustfmt/src/parse/macros

1 file changed

+12
-4
lines changed

src/tools/rustfmt/src/parse/macros/mod.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,10 @@ pub(crate) fn parse_expr(
170170
parser.parse_expr().ok()
171171
}
172172

173-
const RUST_KW: [Symbol; 57] = [
173+
const RUST_KW: [Symbol; 65] = [
174174
kw::DollarCrate,
175175
kw::Underscore,
176176
kw::As,
177-
kw::Box,
178177
kw::Break,
179178
kw::Const,
180179
kw::Continue,
@@ -211,6 +210,7 @@ const RUST_KW: [Symbol; 57] = [
211210
kw::While,
212211
kw::Abstract,
213212
kw::Become,
213+
kw::Box,
214214
kw::Do,
215215
kw::Final,
216216
kw::Macro,
@@ -220,12 +220,20 @@ const RUST_KW: [Symbol; 57] = [
220220
kw::Unsized,
221221
kw::Virtual,
222222
kw::Yield,
223-
kw::Dyn,
224223
kw::Async,
224+
kw::Await,
225+
kw::Dyn,
226+
kw::Gen,
225227
kw::Try,
226-
kw::StaticLifetime,
227228
kw::Auto,
229+
kw::Builtin,
228230
kw::Catch,
229231
kw::Default,
232+
kw::MacroRules,
233+
kw::Raw,
234+
kw::Reuse,
235+
kw::Safe,
236+
kw::StaticLifetime,
230237
kw::Union,
238+
kw::Yeet,
231239
];

0 commit comments

Comments
 (0)