]> git.lizzy.rs Git - rust.git/commit
rustdoc: Fix associated types in signatures
authorUlrik Sverdrup <root@localhost>
Mon, 25 May 2015 13:06:38 +0000 (15:06 +0200)
committerUlrik Sverdrup <root@localhost>
Mon, 25 May 2015 17:06:58 +0000 (19:06 +0200)
commitd1cd689b4867e915e42264175d54c45f22180206
tree28e75952e0cbe9cc042748411327705be6f3a1d5
parent093e18d18465364ef96495ab662fb4325595bead
rustdoc: Fix associated types in signatures

Functions such as `fn foo<I: Iterator>(x: I::Item)` would not
render correctly and displayed `I` instead of `I::Item`. Same thing
with `I::Item` appearing in where bounds.

This fixes the bug by using paths for generics.

Fixes #24417
src/librustdoc/clean/mod.rs
src/librustdoc/html/format.rs
src/test/rustdoc/assoc-types.rs