about summary refs log tree commit diff
path: root/src/test/rustdoc/inline_local
diff options
context:
space:
mode:
authormitaa <mitaa.ceb@gmail.com>2016-03-22 20:26:33 +0100
committermitaa <mitaa.ceb@gmail.com>2016-03-22 21:11:00 +0100
commit4c71347e94a420ea063a17f017ee20d516919091 (patch)
tree312c44e282fd404f96c2f28ad7ffc56044668513 /src/test/rustdoc/inline_local
parentc7bdfd4442f0bde3412f08336f75b9eabff4a938 (diff)
downloadrust-4c71347e94a420ea063a17f017ee20d516919091.tar.gz
rust-4c71347e94a420ea063a17f017ee20d516919091.zip
Consider `doc(no_inline)` in crate-local inlining
Diffstat (limited to 'src/test/rustdoc/inline_local')
-rw-r--r--src/test/rustdoc/inline_local/issue-32343.rs33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/rustdoc/inline_local/issue-32343.rs b/src/test/rustdoc/inline_local/issue-32343.rs
new file mode 100644
index 00000000000..a045c9624b1
--- /dev/null
+++ b/src/test/rustdoc/inline_local/issue-32343.rs
@@ -0,0 +1,33 @@
+// Copyright 2016 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.
+
+// @!has issue_32343/struct.Foo.html
+// @has issue_32343/index.html
+// @has - '//code' 'pub use foo::Foo'
+// @!has - '//code/a' 'Foo'
+#[doc(no_inline)]
+pub use foo::Foo;
+
+// @!has issue_32343/struct.Bar.html
+// @has issue_32343/index.html
+// @has - '//code' 'pub use foo::Bar'
+// @has - '//code/a' 'Bar'
+#[doc(no_inline)]
+pub use foo::Bar;
+
+mod foo {
+    pub struct Foo;
+    pub struct Bar;
+}
+
+pub mod bar {
+    // @has issue_32343/bar/struct.Bar.html
+    pub use ::foo::Bar;
+}