You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnmain(){let json = json!({"foo": "bar", });foo!( a );}
In the above code snippet, rustfmt fails to parse json!({ "foo": "bar", }). After that, any macro call in the same file will not be formatted properly.
The text was updated successfully, but these errors were encountered:
topecongiro
changed the title
Test inside macro.rs is broken
rustfmt fails to format macro call after macro call with invalid syntax
Jun 23, 2017
…, r=arielb1
Add reset_err_count() to errors::Handler
The motivation here is to allow rustfmt to recover from parse errors after failing to parse macros (cc rust-lang/rustfmt#1742).
r? @nrc
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Aug 29, 2017
…, r=arielb1
Add reset_err_count() to errors::Handler
The motivation here is to allow rustfmt to recover from parse errors after failing to parse macros (cc rust-lang/rustfmt#1742).
r? @nrc
In the above code snippet, rustfmt fails to parse
json!({ "foo": "bar", })
. After that, any macro call in the same file will not be formatted properly.The text was updated successfully, but these errors were encountered: