diff options
| author | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2017-08-13 16:59:54 +0300 |
|---|---|---|
| committer | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2017-08-13 18:35:44 +0300 |
| commit | a2adb7db6861a7e3bab1d3f11b33a5935984d366 (patch) | |
| tree | 5a846c2f0d9cc6aba63f766f507038811a0ba6f5 /src/rustllvm/RustWrapper.cpp | |
| parent | adbce60d6f131e5b3789f01417dedb05e4489898 (diff) | |
| download | rust-a2adb7db6861a7e3bab1d3f11b33a5935984d366.tar.gz rust-a2adb7db6861a7e3bab1d3f11b33a5935984d366.zip | |
ast_validation: forbid "nonstandard" literal patterns
Since #42886, macros can create "nonstandard" PatKind::Lit patterns, that contain path expressions instead of the usual literal expr. These can cause trouble, including ICEs. We *could* map these nonstandard patterns to PatKind::Path patterns during HIR lowering, but that would be much effort for little gain, and I think is too risky for beta. So let's just forbid them during AST validation. Fixes #43250.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
