diff options
| author | bors <bors@rust-lang.org> | 2021-01-23 00:42:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-01-23 00:42:37 +0000 |
| commit | 693ed05bbd5f1d217ee85d9b84eda8ee2898700d (patch) | |
| tree | 19b23b25a50dd330a4100bed2ff76606abececbc /compiler/rustc_parse/src/lib.rs | |
| parent | 34b3d41e1ad74983943c05e382a1750cdf6d2b33 (diff) | |
| parent | ccfc292999e133193f61feacd70031c90884636b (diff) | |
| download | rust-693ed05bbd5f1d217ee85d9b84eda8ee2898700d.tar.gz rust-693ed05bbd5f1d217ee85d9b84eda8ee2898700d.zip | |
Auto merge of #81017 - Aaron1011:collect-trailing-token, r=petrochenkov
Refactor token collection to capture trailing token immediately Split out from https://github.com/rust-lang/rust/pull/80689 - when we start capturing more information about attribute targets, we'll need to know in advance if we're capturing a trailing token or not. r? `@ghost`
Diffstat (limited to 'compiler/rustc_parse/src/lib.rs')
| -rw-r--r-- | compiler/rustc_parse/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/lib.rs b/compiler/rustc_parse/src/lib.rs index 62fd6936d21..c365acac625 100644 --- a/compiler/rustc_parse/src/lib.rs +++ b/compiler/rustc_parse/src/lib.rs @@ -292,7 +292,7 @@ pub fn nt_to_tokenstream( } else if matches!(synthesize_tokens, CanSynthesizeMissingTokens::Yes) { return fake_token_stream(sess, nt); } else { - panic!("Missing tokens for nt {:?}", pprust::nonterminal_to_string(nt)); + panic!("Missing tokens for nt at {:?}: {:?}", nt.span(), pprust::nonterminal_to_string(nt)); } } |
