From 3d11d201d9f31074bd5954fff0f6933689d6c8f2 Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Wed, 27 Dec 2017 23:39:25 +0000 Subject: rustdoc: Add missing src links for generic impls on trait pages `implementor2item` would return `None` for generic impls so instead this clones the entire `clean::Item` into the `implementors` map which simplifies some code. --- src/test/rustdoc/issue-43893.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/test/rustdoc') diff --git a/src/test/rustdoc/issue-43893.rs b/src/test/rustdoc/issue-43893.rs index 96bd9d7dc3c..a5e343ade38 100644 --- a/src/test/rustdoc/issue-43893.rs +++ b/src/test/rustdoc/issue-43893.rs @@ -22,3 +22,8 @@ impl SomeTrait for usize {} impl SomeTrait for SomeStruct { // deliberately multi-line impl } + +pub trait AnotherTrait {} + +// @has foo/trait.AnotherTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#29' +impl AnotherTrait for T {} -- cgit 1.4.1-3-g733a5