]> git.lizzy.rs Git - rust.git/commit
rustdoc: Improve handling inlined associated types
authorAlex Crichton <alex@alexcrichton.com>
Tue, 7 Apr 2015 07:16:35 +0000 (00:16 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 8 Apr 2015 00:54:34 +0000 (17:54 -0700)
commit75ef0832ae00477f837a73356ea7f12f64134c7c
tree589e3b6fb2f10c5d5905650bbd936b8fd249a04f
parent11f26f999581e639233e64f4f1fbc210a2bb856a
rustdoc: Improve handling inlined associated types

* All bounds are now discovered through the trait to be inlined.
* The `?Sized` bound now renders correctly for inlined associated types.
* All `QPath`s (`<A as B>::C`) instances are rendered as `A::C` where `C` is a
  hyperlink to the trait `B`. This should improve at least how the docs look at
  least.
* Supertrait bounds are now separated and display as the source lists them.

Closes #20727
Closes #21145
src/librustc/metadata/encoder.rs
src/librustdoc/clean/inline.rs
src/librustdoc/clean/mod.rs
src/librustdoc/html/format.rs
src/test/auxiliary/issue-20727.rs [new file with mode: 0644]
src/test/rustdoc/issue-20727-2.rs [new file with mode: 0644]
src/test/rustdoc/issue-20727-3.rs [new file with mode: 0644]
src/test/rustdoc/issue-20727-4.rs [new file with mode: 0644]
src/test/rustdoc/issue-20727.rs [new file with mode: 0644]