Add some more tracing

This commit is contained in:
Oli Scherer 2021-09-20 15:24:47 +00:00
parent 38e576423d
commit 4281380717
5 changed files with 13 additions and 3 deletions

View file

@ -6,6 +6,9 @@
#![feature(box_patterns)]
#![recursion_limit = "256"]
#[macro_use]
extern crate tracing;
use rustc_ast as ast;
use rustc_ast::token::{self, Nonterminal, Token, TokenKind};
use rustc_ast::tokenstream::{self, AttributesData, CanSynthesizeMissingTokens, LazyTokenStream};

View file

@ -1084,6 +1084,7 @@ impl<'a> Parser<'a> {
/// If we encounter a parser state that looks like the user has written a `struct` literal with
/// parentheses instead of braces, recover the parser state and provide suggestions.
#[instrument(skip(self, seq, snapshot), level = "trace")]
fn maybe_recover_struct_lit_bad_delims(
&mut self,
lo: Span,