1
Fork 0

rustc_parse: Better spans for synthesized token streams

This commit is contained in:
Vadim Petrochenkov 2021-01-07 16:43:22 +03:00
parent b5c496de37
commit 0dab076358
9 changed files with 151 additions and 167 deletions

View file

@ -771,7 +771,7 @@ impl fmt::Display for NonterminalKind {
}
impl Nonterminal {
fn span(&self) -> Span {
pub fn span(&self) -> Span {
match self {
NtItem(item) => item.span,
NtBlock(block) => block.span,