Out of memory with tuple struct initialization, async fn
and use
#122057
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
It's very hard to precisely summarize the keywords, feel sorry if I missed a duplicated case when checking previous issues.
Code
In
lib.rs
In
main.rs
Run
cargo check
orcargo build
, it looks like compiler allocate memory in infinite loop/recursion and eventually get killed.Either the following does not trigger...:
use foo::Foo
withmod foo { /* lib.rs content */ }
Foo(())
withFoo { f: () }
with a privatef
field...and after do either of them once, revert the code, rerun
cargo clean
and rerun, the issue is back.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: