-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ice: coroutine constructed with incorrect number of substitutions
#120732
Labels
C-bug
Category: This is a bug.
F-coroutines
`#![feature(coroutines)]`
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.
Comments
matthiaskrgr
added
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.
C-bug
Category: This is a bug.
F-coroutines
`#![feature(coroutines)]`
requires-debug-assertions
This issue requires a build of rustc or tooling with debug-assertions in some way
labels
Feb 7, 2024
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Feb 7, 2024
matthiaskrgr
removed
the
requires-debug-assertions
This issue requires a build of rustc or tooling with debug-assertions in some way
label
Feb 7, 2024
without debug assertions: auto-reduced (treereduce-rust): #![feature(coroutines, coroutine_trait)]
use std::ops::Coroutine;
use std::pin::Pin;
use std::thread;
fn send_over_threads() {
let mut foo = || yield;
thread::spawn(move || match Pin::new(&mut foo).resume(()) {
s => panic!("bad state: {:?}", s),
})
.join()
.unwrap();
}
#[test]
fn send_over_threads() {}
original: #![feature(coroutines, coroutine_trait)]
use std::ops::{Coroutine, CoroutineState};
use std::pin::Pin;
use std::thread;
fn send_over_threads() {
let mut foo = || yield;
thread::spawn(move || match Pin::new(&mut foo).resume(()) {
s => panic!("bad state: {:?}", s),
})
.join()
.unwrap();
}
#[test]
fn send_over_threads() {} Version information
Command: Program output
|
Regression in nightly-2024-02-07 |
Nadrieril
added a commit
to Nadrieril/rust
that referenced
this issue
Feb 7, 2024
Record coroutine kind in coroutine generics Oops, added a new substitution (the "kind" ty) to coroutines but forgot to record it in the `generics_of`. I'm surprised I left this out of the coroutine-closure PR -- I thought I made this change; I possibly rebased it out by accident. Fixes rust-lang#120732 r? oli-obk
saethlin
removed
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Feb 7, 2024
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Feb 7, 2024
Rollup merge of rust-lang#120746 - compiler-errors:kind-ty, r=oli-obk Record coroutine kind in coroutine generics Oops, added a new substitution (the "kind" ty) to coroutines but forgot to record it in the `generics_of`. I'm surprised I left this out of the coroutine-closure PR -- I thought I made this change; I possibly rebased it out by accident. Fixes rust-lang#120732 r? oli-obk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
F-coroutines
`#![feature(coroutines)]`
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.
auto-reduced (treereduce-rust):
original:
Version information
Command:
/home/matthias/.rustup/toolchains/local-debug-assertions/bin/rustc -Zprint-mono-items=eager -Zpolymorphize=on --crate-type=lib
Program output
The text was updated successfully, but these errors were encountered: