Skip to content

Commit

Permalink
Update for latest master
Browse files Browse the repository at this point in the history
  • Loading branch information
trevyn committed Jan 27, 2024
1 parent bff2ab8 commit 9a53204
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::collections::HashMap;
use std::panic::{catch_unwind, AssertUnwindSafe};

use rustc_ast::token::{BinOpToken, Delimiter, Token, TokenKind};
use rustc_ast::tokenstream::{RefTokenTreeCursor, TokenStream, TokenTree};
use rustc_ast::tokenstream::{DelimSpacing, RefTokenTreeCursor, Spacing, TokenStream, TokenTree};
use rustc_ast::{ast, ptr};
use rustc_ast_pretty::pprust;
use rustc_span::{
Expand Down Expand Up @@ -235,6 +235,7 @@ fn rewrite_macro_inner(
if Delimiter::Brace == style && context.config.format_brace_macros() {
ts = TokenStream::new(vec![TokenTree::Delimited(
mac.args.dspan,
DelimSpacing::new(Spacing::Alone, Spacing::Alone),
Delimiter::Brace,
ts,
)]);
Expand Down

0 comments on commit 9a53204

Please sign in to comment.