mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
Do not eagerly recover malformed AST in rustfmt
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
pub(crate) mod lazy_static;
|
||||
|
||||
fn build_stream_parser<'a>(sess: &'a ParseSess, tokens: TokenStream) -> Parser<'a> {
|
||||
stream_to_parser(sess, tokens, MACRO_ARGUMENTS)
|
||||
stream_to_parser(sess, tokens, MACRO_ARGUMENTS).recovery(Recovery::Forbidden)
|
||||
}
|
||||
|
||||
fn build_parser<'a>(context: &RewriteContext<'a>, tokens: TokenStream) -> Parser<'a> {
|
||||
|
||||
Reference in New Issue
Block a user