| 
 | 1 | +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT  | 
 | 2 | +// file at the top-level directory of this distribution and at  | 
 | 3 | +// http://rust-lang.org/COPYRIGHT.  | 
 | 4 | +//  | 
 | 5 | +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or  | 
 | 6 | +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license  | 
 | 7 | +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your  | 
 | 8 | +// option. This file may not be copied, modified, or distributed  | 
 | 9 | +// except according to those terms.  | 
 | 10 | + | 
 | 11 | +// aux-build:use_crate.rs  | 
 | 12 | +// aux-build:use_crate_2.rs  | 
 | 13 | +// build-aux-docs  | 
 | 14 | +// edition:2018  | 
 | 15 | +// compile-flags:--extern use_crate --extern use_crate_2 -Z unstable-options  | 
 | 16 | + | 
 | 17 | +// During the buildup to Rust 2018, rustdoc would eagerly inline `pub use some_crate;` as if it  | 
 | 18 | +// were a module, so we changed it to make `pub use`ing crate roots remain as a `pub use` statement  | 
 | 19 | +// in docs... unless you added `#[doc(inline)]`.  | 
 | 20 | + | 
 | 21 | +#![crate_name = "local"]  | 
 | 22 | + | 
 | 23 | +// @!has-dir local/use_crate  | 
 | 24 | +// @has local/index.html  | 
 | 25 | +// @has - '//code' 'pub use use_crate'  | 
 | 26 | +pub use use_crate;  | 
 | 27 | + | 
 | 28 | +// @has-dir local/asdf  | 
 | 29 | +// @has local/asdf/index.html  | 
 | 30 | +// @has local/index.html '//a/@href' 'asdf/index.html'  | 
 | 31 | +pub use use_crate::asdf;  | 
 | 32 | + | 
 | 33 | +// @has-dir local/use_crate_2  | 
 | 34 | +// @has local/use_crate_2/index.html  | 
 | 35 | +// @has local/index.html '//a/@href' 'use_crate_2/index.html'  | 
 | 36 | +#[doc(inline)]  | 
 | 37 | +pub use use_crate_2;  | 
0 commit comments