Always put a space after dyn in macro pretty-printing

… regardless of whether the next symbol is punctuation or not.
Fixes issue 11100.
This commit is contained in:
Jonas Platte 2022-01-05 18:04:44 +01:00
parent f5b789b1dc
commit b8f4667aa9
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -88,7 +88,7 @@ pub fn insert_ws_into(syn: SyntaxNode) -> SyntaxNode {
LIFETIME_IDENT if is_next(|it| is_text(it), true) => {
mods.push(do_ws(after, tok));
}
AS_KW => {
AS_KW | DYN_KW => {
mods.push(do_ws(after, tok));
}
T![;] => {