From 688e52201edb497453f33e098f23de136a0d64bf Mon Sep 17 00:00:00 2001 From: mitaa Date: Sat, 5 Mar 2016 11:20:34 +0100 Subject: Split out rustdoc pass to strip private imports --- src/test/rustdoc/issue-15347.rs | 2 +- src/test/rustdoc/issue-27104.rs | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/test/rustdoc/issue-27104.rs (limited to 'src/test/rustdoc') 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 or the MIT license +// , 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; -- cgit 1.4.1-3-g733a5