Closed
Description
If no_std
is set, section "methods from Deref" does not appear for struct.
I tried this code:
// Comment the line below to make it work as expected.
#![no_std]
use core::ops::Deref;
pub struct MyArray<T> {
array: [T; 10],
}
impl<T> Deref for MyArray<T> {
type Target = [T];
fn deref(&self) -> &Self::Target {
&self.array
}
}
Then ran:
cargo doc --open
I expected this to show up:
Instead, it did not show up:
Meta
rustdoc --version --verbose
:
rustdoc 1.61.0-nightly (d53246fed 2022-03-25)
binary: rustdoc
commit-hash: d53246fedde4c193eae8a003546a8f0f9f85d223
commit-date: 2022-03-25
host: x86_64-unknown-linux-gnu
release: 1.61.0-nightly
LLVM version: 14.0.0