parser: Remove a restricted keyword check
I can't find a way to trigger this error
This commit is contained in:
parent
48368c5a07
commit
21dc41649b
1 changed files with 0 additions and 1 deletions
|
@ -821,7 +821,6 @@ fn parse_bottom_expr(p: parser) -> pexpr {
|
||||||
} else if p.token == token::MOD_SEP ||
|
} else if p.token == token::MOD_SEP ||
|
||||||
is_ident(p.token) && !is_keyword(p, "true") &&
|
is_ident(p.token) && !is_keyword(p, "true") &&
|
||||||
!is_keyword(p, "false") {
|
!is_keyword(p, "false") {
|
||||||
check_restricted_keywords(p);
|
|
||||||
let pth = parse_path_with_tps(p, true);
|
let pth = parse_path_with_tps(p, true);
|
||||||
hi = pth.span.hi;
|
hi = pth.span.hi;
|
||||||
ex = ast::expr_path(pth);
|
ex = ast::expr_path(pth);
|
||||||
|
|
Loading…
Reference in a new issue