Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/mbe/src/to_parser_input.rs')
| -rw-r--r-- | crates/mbe/src/to_parser_input.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/mbe/src/to_parser_input.rs b/crates/mbe/src/to_parser_input.rs index 66db525362..c35b28527a 100644 --- a/crates/mbe/src/to_parser_input.rs +++ b/crates/mbe/src/to_parser_input.rs @@ -65,9 +65,8 @@ pub(crate) fn to_parser_input<S: Copy + fmt::Debug>( i if i.starts_with('\'') => res.push(LIFETIME_IDENT), _ if ident.is_raw.yes() => res.push(IDENT), "gen" if !edition.at_least_2024() => res.push(IDENT), - "async" | "await" | "dyn" | "try" if !edition.at_least_2018() => { - res.push(IDENT) - } + "dyn" if !edition.at_least_2018() => res.push_ident(DYN_KW), + "async" | "await" | "try" if !edition.at_least_2018() => res.push(IDENT), text => match SyntaxKind::from_keyword(text) { Some(kind) => res.push(kind), None => { |