-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustdoc ICE 'Deref section without derived id' #81395
Comments
When running with
impl<'a> ops::Deref for VideoFrameRef<&'a mut gst::BufferRef> {
type Target = VideoFrameRef<&'a gst::BufferRef>;
fn deref(&self) -> &Self::Target {
unsafe {
&*(self as *const VideoFrameRef<&'a mut gst::BufferRef>
as *const VideoFrameRef<&'a gst::BufferRef>)
}
}
} #[derive(Debug)]
pub struct VideoFrameRef<T> {
frame: ffi::GstVideoFrame,
buffer: Option<T>,
info: crate::VideoInfo,
unmap: bool,
} |
Minimized: pub struct Generic<T>(T);
impl<'a> std::ops::Deref for Generic<&'a mut ()> {
type Target = Generic<&'a ()>;
fn deref(&self) -> &Self::Target {
unimplemented!()
}
}
impl<'a> Generic<&'a ()> {
pub fn some_method(&self) {}
} |
searched nightlies: from nightly-2020-11-12 to nightly-2021-01-17 bisected with cargo-bisect-rustc v0.6.0Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start=2020-11-12 --end=2021-01-17 --preserve -- doc Regressed in #80653. @rustbot label regression-from-stable-to-nightly |
cc @jryans - do you have time to figure out what's going wrong here? |
Yes, I believe so, I'll see what I can do here. @rustbot claim |
The core issue is the |
Code
Original:
Minimized:
Meta
rustc +nightly --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: