diff options
| author | bors <bors@rust-lang.org> | 2021-06-27 20:33:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-27 20:33:25 +0000 |
| commit | e8cb1a4a567ce88e459ffd431207eff2e0f0ffa5 (patch) | |
| tree | 197eb8612e926b0c09149a35e033ea8ac0f72209 /compiler/rustc_codegen_llvm/src | |
| parent | a4f832b2755fa1421edd3bf6d8b4d61f2c1732b6 (diff) | |
| parent | f6dd1378f0918554ace992df0b3d03529f6a2715 (diff) | |
| download | rust-e8cb1a4a567ce88e459ffd431207eff2e0f0ffa5.tar.gz rust-e8cb1a4a567ce88e459ffd431207eff2e0f0ffa5.zip | |
Auto merge of #85359 - lrh2000:reserved-prefixes, r=nikomatsakis
Reserve prefixed identifiers and literals (RFC 3101) This PR denies any identifiers immediately followed by one of three tokens `"`, `'` or `#`, which is stricter than the requirements of RFC 3101 but may be necessary according to the discussion at [Zulip]. [Zulip]: https://rust-lang.zulipchat.com/#narrow/stream/268952-edition-2021/topic/reserved.20prefixes/near/238470099 The tracking issue #84599 says we'll add a feature gate named `reserved_prefixes`, but I don't think I can do this because it is impossible for the lexer to know whether a feature is enabled or not. I guess determining the behavior by the edition information should be enough. Fixes #84599
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
