File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
tests/source/configs/format_brace_macros Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -233,9 +233,11 @@ fn rewrite_macro_inner(
233
233
}
234
234
235
235
if Delimiter :: Brace == style && context. config . format_brace_macros ( ) {
236
- if let ast:: MacArgs :: Delimited ( span, ..) = * mac. args {
237
- ts = TokenStream :: new ( vec ! [ TokenTree :: Delimited ( span, Delimiter :: Brace , ts) ] ) ;
238
- }
236
+ ts = TokenStream :: new ( vec ! [ TokenTree :: Delimited (
237
+ mac. args. dspan,
238
+ Delimiter :: Brace ,
239
+ ts,
240
+ ) ] ) ;
239
241
}
240
242
241
243
let ParsedMacroArgs {
Original file line number Diff line number Diff line change @@ -85,8 +85,7 @@ macro_rules! impl_from_vector {
85
85
*/
86
86
87
87
test_if! {
88
- $test_tt:
89
- interpolate_idents! {
88
+ $test_tt: interpolate_idents! {
90
89
mod [ $id _from_ $source] {
91
90
use super :: * ;
92
91
#[ test]
You can’t perform that action at this time.
0 commit comments