]> git.lizzy.rs Git - rust.git/commit
rustdoc: don't mark Box<T> as Iterator, Read, etc
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>
Sun, 23 Oct 2022 09:47:20 +0000 (02:47 -0700)
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>
Mon, 24 Oct 2022 05:14:10 +0000 (22:14 -0700)
commit63d1a721f187faf007e8540e4d5b6b2e494231eb
treea3d447e73c0ea5550577d8ae5ca2e98351f7f3c7
parent415d8fcc3e17f8c1324a81cf2aa7127b4fcfa32e
rustdoc: don't mark Box<T> as Iterator, Read, etc

Because Box<T> has pass-through implementations, rustdoc was giving it the
"Notable Traits" treatment for Iterator, Read, Write, and Future, even when the
type of T was unspecified.

Pin had the same problem, but just for Future.
src/librustdoc/html/render/mod.rs
src/test/rustdoc/doc-notable_trait_box_is_not_an_iterator.rs [new file with mode: 0644]