]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/redirect.rs
rustbuild: fix remap-debuginfo when building a release
[rust.git] / src / test / rustdoc / redirect.rs
1 // Copyright 2016 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:reexp_stripped.rs
12 // build-aux-docs
13 // ignore-cross-compile
14
15 extern crate reexp_stripped;
16
17 pub trait Foo {}
18
19 // @has redirect/index.html
20 // @has - '//code' 'pub use reexp_stripped::Bar'
21 // @has - '//code/a' 'Bar'
22 // @has reexp_stripped/hidden/struct.Bar.html
23 // @has - '//p/a' '../../reexp_stripped/struct.Bar.html'
24 // @has 'reexp_stripped/struct.Bar.html'
25 #[doc(no_inline)]
26 pub use reexp_stripped::Bar;
27 impl Foo for Bar {}
28
29 // @has redirect/index.html
30 // @has - '//code' 'pub use reexp_stripped::Quz'
31 // @has - '//code/a' 'Quz'
32 // @has reexp_stripped/private/struct.Quz.html
33 // @has - '//p/a' '../../reexp_stripped/struct.Quz.html'
34 // @has 'reexp_stripped/struct.Quz.html'
35 #[doc(no_inline)]
36 pub use reexp_stripped::Quz;
37 impl Foo for Quz {}
38
39 mod private_no_inline {
40     pub struct Qux;
41     impl ::Foo for Qux {}
42 }
43
44 // @has redirect/index.html
45 // @has - '//code' 'pub use private_no_inline::Qux'
46 // @!has - '//code/a' 'Qux'
47 #[doc(no_inline)]
48 pub use private_no_inline::Qux;