Validate uses of self and super

This commit is contained in:
John Renner 2020-05-01 08:59:24 -07:00
parent 6d49c7dfa3
commit 3bb46042fb
9 changed files with 180 additions and 77 deletions

View file

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