Validate the location of crate in paths

This commit is contained in:
John Renner 2020-04-27 10:02:47 -07:00
parent 7a9ba1657d
commit 0af727da91
5 changed files with 121 additions and 1 deletions

View file

@ -595,7 +595,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
qualifier: Path,
}
struct PathSegment {
T![::], T![<], NameRef, TypeArgList, ParamList, RetType, PathType, T![>]
T![::], T![crate], T![<], NameRef, TypeArgList, ParamList, RetType, PathType, T![>]
}
struct TypeArgList {
T![::],