Auto merge of #32055 - mitaa:rdoc-strip-priv-imports, r=alexcrichton
fixes #27104 r? @alexcrichton
This commit is contained in:
commit
72d588a620
5 changed files with 51 additions and 8 deletions
9
src/test/auxiliary/empty.rs
Normal file
9
src/test/auxiliary/empty.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// 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.
|
||||
|
|
@ -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)]
|
||||
|
|
|
|||
20
src/test/rustdoc/issue-27104.rs
Normal file
20
src/test/rustdoc/issue-27104.rs
Normal file
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue