-
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: broken MIR in DefId #55241
Comments
I think I have a similar ICE. The exact ICE point is:
I have a snapshot of my project at https://files.myrrlyn.net/cosmonaut-ice-20181021.tar.xz See the files |
assigning to self to reduce to a smaller test case. |
Marking as an RC2 blocker -- though it might be better to shoot for a backport? |
I think we decided to push this to Rust 2018 release |
I just tested and this still seems to reproduce with #55229 :( |
OK, I have a fix for this. |
I did not yet manage to crate a narrowed test case for this particular case — it seems like a several similar root problem to #55219 though. |
OK, here is a standalone test case: #![feature(nll)]
pub trait Hasher {
type Out: Eq;
}
pub trait NodeCodec<H: Hasher> {
const HASHED_NULL_NODE: H::Out;
}
pub trait Trie<H: Hasher, C: NodeCodec<H>> {
fn root(&self) -> &H::Out;
fn is_empty(&self) -> bool { *self.root() == C::HASHED_NULL_NODE }
}
fn main() { } |
Add regression tests for rust-lang#55219 and rust-lang#55241 Also another test where a duplicate-like error appears to have been suppressed; I'm not 100% sure why this output changes, though I could imagine that some duplicate suppression is enabled by this PR.
When compiling
paritytech/parity-common
workspace usingcargo test --features std
.As far as the error shows it has something to do with the
patricia_trie
sub crate.Compiler output:
The text was updated successfully, but these errors were encountered: