Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3ab593b

Browse files
committedMar 14, 2019
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

+1-1
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)
Please sign in to comment.