summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-03-06 17:08:36 +0000
committerbors <bors@rust-lang.org>2016-03-06 17:08:36 +0000
commit72d588a62044b9fae0e5baaba21aa9166b6db9c5 (patch)
tree59d7a400ed296240c854b2d39d64935b214878cb /src/test/rustdoc
parent71f4658c14c63be2c9e6dbf85e46c10cf20fed71 (diff)
parent688e52201edb497453f33e098f23de136a0d64bf (diff)
downloadrust-72d588a62044b9fae0e5baaba21aa9166b6db9c5.tar.gz
rust-72d588a62044b9fae0e5baaba21aa9166b6db9c5.zip
Auto merge of #32055 - mitaa:rdoc-strip-priv-imports, r=alexcrichton
fixes #27104

r? @alexcrichton
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/issue-15347.rs2
-rw-r--r--src/test/rustdoc/issue-27104.rs20
2 files changed, 21 insertions, 1 deletions
diff --git a/src/test/rustdoc/issue-15347.rs b/src/test/rustdoc/issue-15347.rs
index 97c37bbc1ed..266a3089194 100644
--- a/src/test/rustdoc/issue-15347.rs
+++ b/src/test/rustdoc/issue-15347.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// compile-flags:--no-defaults --passes "collapse-docs" --passes "unindent-comments"
+// compile-flags:--no-defaults --passes collapse-docs --passes unindent-comments
 
 // @has issue_15347/fn.foo.html
 #[doc(hidden)]
diff --git a/src/test/rustdoc/issue-27104.rs b/src/test/rustdoc/issue-27104.rs
new file mode 100644
index 00000000000..5fa093d8f29
--- /dev/null
+++ b/src/test/rustdoc/issue-27104.rs
@@ -0,0 +1,20 @@
+// 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.
+
+// compile-flags:--no-defaults --passes strip-priv-imports
+// aux-build:empty.rs
+// ignore-cross-compile
+
+// @has issue_27104/index.html
+// @!has - 'extern crate std'
+// @!has - 'use std::prelude::'
+
+// @has - 'pub extern crate empty'
+pub extern crate empty;