-
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
Fix ICE #48984 #50271
Fix ICE #48984 #50271
Conversation
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
r? @nikomatsakis For the record, I don't like |
@bors r+ |
📌 Commit d0839d5 has been approved by |
@bors r- I believe #48010 isn't fixed, and that this is a pervasive problem with uses of #![crate_type = "lib"]
struct Foo;
pub struct Path<T: Bar> {
inner: T::Slice,
}
pub trait Bar: Sized {
type Slice: ?Sized;
fn open(_: &Path<Self>);
}
impl Bar for Foo {
type Slice = ([u8],);
fn open(_: &Path<Self>) {
unimplemented!()
}
} |
It have returned `Some` for constants in a trait definition, and `Instance::resolve` called `tcx.associated_item` for them, causing ICE.
Thanks, I should have noticed that. I removed fbf6423 from this PR (I don't have time to fix for now). |
@bors r+ |
📌 Commit 9fc2595 has been approved by |
☀️ Test successful - status-appveyor, status-travis |
fbf6423 The tail type was not normalized.