1
Fork 0

Issue warnings for unnecessary path disambiguators

This commit is contained in:
Vadim Petrochenkov 2017-08-11 02:30:08 +03:00
parent 7d21f21f71
commit 804459bdca
3 changed files with 32 additions and 15 deletions

View file

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