about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorGurinder Singh <frederick.the.fool@gmail.com>2023-10-30 13:03:40 +0530
committerGurinder Singh <frederick.the.fool@gmail.com>2023-10-30 13:03:40 +0530
commit0c8bdd0bf33c2313ad9d0be495ffde8f4532237a (patch)
treeda5d9119349547267fe42ef0aa34bdf9d2e28757 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent98108dc26cb3f73f29c07b03ab75540545f3b481 (diff)
downloadrust-0c8bdd0bf33c2313ad9d0be495ffde8f4532237a.tar.gz
rust-0c8bdd0bf33c2313ad9d0be495ffde8f4532237a.zip
Fail typeck for illegal break-with-value
This is fixes the issue wherein typeck was succeeding for break-with-value
at illegal locations such as inside `while`, `while let` and `for` loops which
eventually caused an ICE during MIR interpetation for const eval.

Now we fail typeck for such code which prevents faulty MIR from being generated
and interpreted, thus fixing the ICE.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions