Skip to content

Commit 3ab593b

Browse files
committed
Allow formatting macro decl with invalid syntax to fail
This change is necessary due to the recent change in the rustc parser that the following attribute has become a hard parser error: ```rust struct Foo; ``` cc rust-lang/rust#57367.
1 parent 027896b commit 3ab593b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/target/macro_rules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ macro_rules! m [
172172
];
173173

174174
// #2470
175-
macro foo($type_name:ident, $docs:expr) {
175+
macro foo($type_name: ident, $docs: expr) {
176176
#[allow(non_camel_case_types)]
177177
#[doc=$docs]
178178
#[derive(Debug, Clone, Copy)]

0 commit comments

Comments
 (0)