-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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: Broken MIR: NoSolution #120811
Comments
span_delayed_bug
issued
At least this is not a recent ICE: it already exists in 1.70.0, which is the oldest version supported by |
@rustbot claim |
I tried minimizing using the following steps:
I was hoping it would minimize the file |
I have only every used treereduce on single files, together with `rustc file.rs' directly, not sure how it would work together with cargo (maybe try cargo-minimize?). |
Thanks @matthiaskrgr. Appreciate the help. cargo-minimize did work, but it being a simpler tool did not reduce in any meaningful way. Nonetheless, this does narrow the options down to only manual minimization which is what I'll try. |
It was not easy to minimize but this GAT ICE is quite old, from trait Container {
type Item<'a>;
}
impl Container for () {
type Item<'a> = ();
}
struct Exchange<C, F> {
_marker: std::marker::PhantomData<(C, F)>,
}
fn exchange<C, F>(_: F) -> Exchange<C, F>
where
C: Container,
for<'a> F: FnMut(&C::Item<'a>),
{
unimplemented!()
}
trait Parallelization<C> {}
impl<C, F> Parallelization<C> for Exchange<C, F> {}
fn unary_frontier<P: Parallelization<()>>(_: P) {}
fn main() {
let exchange = exchange(|_| ());
let _ = || {
unary_frontier(exchange);
};
} |
Code
Unfortunately it's nearly impossible for me to figure out where the problem actually happens, so finding a minimal example is tough.
Branch here: https://github.com/antiguru/timely-dataflow/tree/container_gat_ice
Command:
Meta
rustc --version --verbose
:The same error happens on nightly.
Error output
The text was updated successfully, but these errors were encountered: