about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2023-10-30 10:48:20 +0100
committerGitHub <noreply@github.com>2023-10-30 10:48:20 +0100
commit4f4b38c40fde9bef29a0cca1452005d40b60738a (patch)
treecab7589b32d8aa7accd2ae2375c80c518e728afb /compiler/rustc_codegen_llvm/src/errors.rs
parent12eb539bf27fd96fa515b28e1dab28489f5ce027 (diff)
parent0c8bdd0bf33c2313ad9d0be495ffde8f4532237a (diff)
downloadrust-4f4b38c40fde9bef29a0cca1452005d40b60738a.tar.gz
rust-4f4b38c40fde9bef29a0cca1452005d40b60738a.zip
Rollup merge of #117382 - gurry:114529-ice-const-eval, r=oli-obk
Fail typeck for illegal break-with-value

This is fixes the issue wherein typeck was succeeding for break-with-value exprs at illegal locations such as inside `while`, `while let` and `for` loops which eventually caused an ICE during MIR interpretation for const eval.

Now we fail typeck for such code which prevents faulty MIR from being generated and interpreted, thus fixing the ICE.

Fixes #114529
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions