thread 'rustc' panicked at 'Failed to get parent for DefId(0:5 ~ playground[5c45]::{{impl}}[1])', src/librustc/traits/specialize/specialization_graph.rs:390:52 #67856
Labels
C-bug
Category: This is a bug.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
F-unboxed_closures
`#![feature(unboxed_closures)]`
glacier
ICE tracked in rust-lang/glacier.
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.
Didn’t find a way (yet?) to do this for traits that are not FnOnce, also didn’t find a way to trigger the panic without having a conflicting trait implementation.
Where it currently says
&F
, you can also useF
,&mut F
,&& F
, ect, ..., orBox<F>
. Seems like, possibly, everything that already implementsFnOnce
triggers the panic.This also panicks on stable(1.40.0), also with features commented out (though it’ll complain about unstable/missing features before the panic).
(Playground)
Errors:
The text was updated successfully, but these errors were encountered: