Skip to content

Commit 21dc416

Browse files
committed
parser: Remove a restricted keyword check
I can't find a way to trigger this error
1 parent 48368c5 commit 21dc416

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustsyntax/parse/parser.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,6 @@ fn parse_bottom_expr(p: parser) -> pexpr {
821821
} else if p.token == token::MOD_SEP ||
822822
is_ident(p.token) && !is_keyword(p, "true") &&
823823
!is_keyword(p, "false") {
824-
check_restricted_keywords(p);
825824
let pth = parse_path_with_tps(p, true);
826825
hi = pth.span.hi;
827826
ex = ast::expr_path(pth);

0 commit comments

Comments
 (0)