Skip to content

Reserved words are not enforced by the compiler #1587

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
mbrubeck opened this issue Jan 21, 2012 · 1 comment
Closed

Reserved words are not enforced by the compiler #1587

mbrubeck opened this issue Jan 21, 2012 · 1 comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@mbrubeck
Copy link
Contributor

The reference manual lists a small set of reserved words, but the compiler does not prevent them from being used as identifiers. Ideally it should fail with a syntax error, so that these words can be added as keywords in future versions without breaking any previously-working code.

@brson
Copy link
Contributor

brson commented Jan 29, 2012

They are in the bad words table now.

@brson brson closed this as completed Jan 29, 2012
Kobzol pushed a commit to Kobzol/rust that referenced this issue Dec 30, 2024
bors pushed a commit to rust-lang-ci/rust that referenced this issue Jan 2, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

2 participants