Async/.await and const-generics causes "Broken MIR:" #74906
Labels
A-async-await
Area: Async & Await
A-const-generics
Area: const generics (parameters and arguments)
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
The use of async/await and const generics can cause ICE (in the type checker?). Here is a minimal example which induces ICE:
The behaviour is not triggered without the use of async/await.
The full library source.
Meta
I am running recent nightly compiler:
rustc --version --verbose
:Error output
The text was updated successfully, but these errors were encountered: