about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-28 20:05:14 +0100
committerGitHub <noreply@github.com>2022-02-28 20:05:14 +0100
commit934079180da6e75ee2398d0342857797df5c7a49 (patch)
tree1982c006c70c27582bd99e9d3b1d50f5146548c7 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parenta040e2f4f5104e8e3188735fea4f6d0b2632251e (diff)
parent025b7c433c109dad2c84f1cbeae422a3ffbd01b6 (diff)
downloadrust-934079180da6e75ee2398d0342857797df5c7a49.tar.gz
rust-934079180da6e75ee2398d0342857797df5c7a49.zip
Rollup merge of #94248 - compiler-errors:fix-while-loop-bad-delay, r=petrochenkov
Fix ICE when passing block to while-loop condition

We were incorrectly delaying a bug when we passed _any_ block (that evaluated to `()`) to a while loop. This PR makes the check a bit more sophisticated.

We should only suppress the error here in cases that are equivalent to those we find in #93574 (i.e. only while loop conditions that have destructuring assignment expressions in them).

Fixes #93997
cc `@estebank` who added this code

I would not be opposed to removing the delay-bug altogether, and just emitting this error always. I much prefer duplicate errors over no errors.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions