diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-02-28 20:05:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-28 20:05:14 +0100 |
| commit | 934079180da6e75ee2398d0342857797df5c7a49 (patch) | |
| tree | 1982c006c70c27582bd99e9d3b1d50f5146548c7 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | a040e2f4f5104e8e3188735fea4f6d0b2632251e (diff) | |
| parent | 025b7c433c109dad2c84f1cbeae422a3ffbd01b6 (diff) | |
| download | rust-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
