-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustdoc ICE #48463
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
More information:
|
Reproduction: use std::any::Any;
use std::ops::Deref;
pub struct AnyValue {
val: Box<Any>,
}
impl Deref for AnyValue {
type Target = Any;
fn deref(&self) -> &Any {
&*self.val
}
} |
I'd like to work on this (especially because it seems to be related to my PR. |
@Aaron1011 Are you on IRC? @GuillaumeGomez and i are discussing this in |
Looks like we narrowed it down: rust/src/librustdoc/clean/mod.rs Lines 3430 to 3433 in 063deba
When building up a Deref impl, it also pulls in methods for the trait. But here it's also asking to pull in the auto-trait impls as well. This fails here because it's trying to ask the compiler for the type of a trait, which is invalid, hence the ICE. However, auto-trait impls don't propagate through Deref anyway, so this can be bypassed entirely by changing that |
…mpl-fix, r=QuietMisdreavus Fix auto trait impl rustdoc ice Fixes rust-lang#48463. r? @QuietMisdreavus
…mpl-fix, r=QuietMisdreavus Fix auto trait impl rustdoc ice Fixes rust-lang#48463. r? @QuietMisdreavus
I'll check where we use an
unwrap
.The text was updated successfully, but these errors were encountered: