Issue warnings for unnecessary path disambiguators
This commit is contained in:
parent
7d21f21f71
commit
804459bdca
3 changed files with 32 additions and 15 deletions
|
@ -599,9 +599,7 @@ fn parse_nt<'a>(p: &mut Parser<'a>, sp: Span, name: &str) -> Nonterminal {
|
|||
panic!(FatalError)
|
||||
}
|
||||
},
|
||||
"path" => {
|
||||
token::NtPath(panictry!(p.parse_path(PathStyle::Type)))
|
||||
},
|
||||
"path" => token::NtPath(panictry!(p.parse_path_common(PathStyle::Type, false))),
|
||||
"meta" => token::NtMeta(panictry!(p.parse_meta_item())),
|
||||
"vis" => token::NtVis(panictry!(p.parse_visibility(true))),
|
||||
// this is not supposed to happen, since it has been checked
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue