You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;pubstructMyArray<T>{array:[T;10],}impl<T>DerefforMyArray<T>{typeTarget = [T];fnderef(&self) -> &Self::Target{&self.array}}
marcospb19
changed the title
rustdoc: section methods from Deref hidden when no_std is set
rustdoc: section methods from Deref hidden when no_std is set
Mar 26, 2022
If
no_std
is set, section "methods from Deref" does not appear for struct.I tried this code:
Then ran:
I expected this to show up:
Instead, it did not show up:
Meta
rustdoc --version --verbose
:The text was updated successfully, but these errors were encountered: