Debug assertion failure with generator that yields mismatched tuples #105728
Labels
C-bug
Category: This is a bug.
F-coroutines
`#![feature(coroutines)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-debug-assertions
This issue requires a build of rustc or tooling with debug-assertions in some way
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Found by modifying src/test/ui/typeck/issue-91334.rs with my fork of fuzz-rustc
Code
Debug assertion failure
thread 'rustc' panicked at 'assertion failed:
(left == right)
left:
0
,right:
2
', compiler/rustc_hir_typeck/src/generator_interior/mod.rs:611Where line 611 in
rustc_hir_typeck::generator_interior::check_must_not_suspend_ty
is:Full output with backtrace
Version
Built stage1 from fbf8b93 with debug assertions enabled
CC @FabianWolff, who fixed similar issue #91334
@rustbot label +requires-debug-assertions +F-generators
The text was updated successfully, but these errors were encountered: