]> gcc.gnu.org Git - gcc.git/commit
lexer: Allow specifiying tokens as reserved in certain editions
authorArthur Cohen <arthur.cohen@embecosm.com>
Tue, 19 Jul 2022 11:09:17 +0000 (13:09 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 19 Jul 2022 11:09:17 +0000 (13:09 +0200)
commit66af31d5bc5a1ea76be381dc9246fbe4fe034fbb
tree9541637ba71200d98109f7bc3f698842deb4848e
parentfb1b2a6bf5eed9dd9405dca9b9c895f48509875e
lexer: Allow specifiying tokens as reserved in certain editions

Some tokens such as `try` only became reserved keywords in certain
editions. This behavior might happen again in the future and we should
be able to handle it.
gcc/rust/lex/rust-lex.cc
gcc/rust/rust-session-manager.h
gcc/testsuite/rust/compile/macro-issue1395-2.rs [new file with mode: 0644]
gcc/testsuite/rust/compile/macro-issue1395.rs [new file with mode: 0644]
This page took 0.062608 seconds and 6 git commands to generate.