-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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: compiler/rustc_monomorphize/src/collector.rs:1038:9: no MIR available #111320
Comments
searched nightlies: from nightly-2023-05-05 to nightly-2023-05-07 bisected with cargo-bisect-rustc v0.6.6Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --regress=ice -- build |
reduced: // crate a
trait PrivTrait {
fn priv_fn(&self);
}
pub struct ImplPrivTrait;
impl PrivTrait for ImplPrivTrait {
fn priv_fn(&self) {}
}
pub struct Wrapper<T>(T);
pub trait PubTrait {
fn pub_fn(&self);
}
impl<T: PrivTrait> PubTrait for Wrapper<T> {
fn pub_fn(&self) {
self.0.priv_fn()
}
} // crate b
use a::{Wrapper, ImplPrivTrait, PubTrait};
pub fn foo(x: Wrapper<ImplPrivTrait>) {
x.pub_fn();
} run |
@rustbot label regression-from-stable-to-nightly |
matrix-sdk
crate ICEs: compiler/rustc_monomorphize/src/collector.rs:1038:9: no MIR availableWorks around rust-lang/rust#111320.
yeah having issues with nightly and wgpu as will with this exact error. I wonder what changes caused this issue. |
@genusistimelord This is caused by #110907, which is getting reverted in #111371. So if all goes well (and the github outage gets resolved soon) this should be fixed in tomorrow's nightly. |
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-critical |
Code
Haven't been able to minimize it yet, but it can be reproduced by creating a new cargo project, adding
matrix-sdk = "0.6.2"
to the dependencies and compiling it with nightly rustc 2023-05-06Edit: Minimized test case: #111320 (comment)
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: