Skip to content

Commit c6995a3

Browse files
committed
Auto merge of rust-lang#12117 - Veykril:mexpand, r=Veykril
minor: Insert whitespace after const token when formatting macro expansions
2 parents 5f1ed3c + df85ee0 commit c6995a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide_db/src/syntax_helpers/insert_whitespace_into_node.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub fn insert_ws_into(syn: SyntaxNode) -> SyntaxNode {
8888
LIFETIME_IDENT if is_next(is_text, true) => {
8989
mods.push(do_ws(after, tok));
9090
}
91-
AS_KW | DYN_KW | IMPL_KW => {
91+
AS_KW | DYN_KW | IMPL_KW | CONST_KW => {
9292
mods.push(do_ws(after, tok));
9393
}
9494
T![;] => {

0 commit comments

Comments
 (0)