about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-08-14 05:05:06 +0000
committerbors <bors@rust-lang.org>2017-08-14 05:05:06 +0000
commitbae4fafdfb756690ee31ac939299380cc559c697 (patch)
tree632fc358ce11beca22144a43a08fa54bd4994d7a /src/rustllvm/RustWrapper.cpp
parente3245948445b77c25cd9f3b29cbad3187aee3eb7 (diff)
parenta2adb7db6861a7e3bab1d3f11b33a5935984d366 (diff)
downloadrust-bae4fafdfb756690ee31ac939299380cc559c697.tar.gz
rust-bae4fafdfb756690ee31ac939299380cc559c697.zip
Auto merge of #43844 - arielb1:literally-nonstandard, r=eddyb
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.

beta-nominating because regression.
r? @eddyb
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions