rustdoc: notable traits triggers on all &[T]
and &mut [T]
returns
#100322
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
All methods and functions that return
&[T]
get the ⓘ Notable Traits icon indicating the return type has some trait that the reader should know about immediately. For instance:https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice
This shouldn't happen for two reasons:
T
will beu8
, and implying to the user that it will beu8
is just confusing.Read
andWrite
impls are far from the most notable thing about&[u8]
and&mut [u8]
. Rather than attaching a ⓘ to every instance of-> &[u8]
and-> &mut [u8]
in the documentation, we should rely on theslice
page to communicate those impls.Related: #100320, #55082
The text was updated successfully, but these errors were encountered: