Do not eagerly recover malformed AST in rustfmt

This commit is contained in:
Michael Goulet 2024-01-22 00:56:58 +00:00
parent 981e8b46c5
commit b93ae21441

View File

@ -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> {