about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-08-21 22:48:21 +0000
committerbors <bors@rust-lang.org>2018-08-21 22:48:21 +0000
commit1cbf339626e52e1e66a6df3097051bb981bfa964 (patch)
tree7f11349f8965c7a0a07c66b9d5cc04d063b760e8 /src/test/rustdoc
parentd0d81b7fc1421859ba0218e8a437af29ae3b0967 (diff)
parent985da801b07ec997e3eb6d735a0dfd041728623e (diff)
downloadrust-1cbf339626e52e1e66a6df3097051bb981bfa964.tar.gz
rust-1cbf339626e52e1e66a6df3097051bb981bfa964.zip
Auto merge of #53439 - GuillaumeGomez:generate-blanket-impls-for-reexported-items, r=QuietMisdreavus
Generate blanket implementations for reexported items as well

Fixes #53374.

r? @QuietMisdreavus
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/blanket-reexport-item.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/rustdoc/blanket-reexport-item.rs b/src/test/rustdoc/blanket-reexport-item.rs
new file mode 100644
index 00000000000..355bfa0f2f2
--- /dev/null
+++ b/src/test/rustdoc/blanket-reexport-item.rs
@@ -0,0 +1,18 @@
+// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+#![crate_name = "foo"]
+
+// @has foo/struct.S.html '//h3[@id="impl-Into"]//code' 'impl<T, U> Into for T'
+pub struct S2 {}
+mod m {
+    pub struct S {}
+}
+pub use m::*;