diff options
| author | QuietMisdreavus <grey@quietmisdreavus.net> | 2018-11-08 19:06:16 -0600 |
|---|---|---|
| committer | QuietMisdreavus <grey@quietmisdreavus.net> | 2018-11-09 09:07:57 -0600 |
| commit | 401cb6bb539e95733290d1b0487f682f48b3f9cd (patch) | |
| tree | 0e0407ac05b1c379c3ec4bff13a7b7b4599fef2f /src/test/rustdoc/inline_cross/auxiliary | |
| parent | 653da4fd006c97625247acd7e076d0782cdc149b (diff) | |
| download | rust-401cb6bb539e95733290d1b0487f682f48b3f9cd.tar.gz rust-401cb6bb539e95733290d1b0487f682f48b3f9cd.zip | |
don't inline `pub use some_crate` unless directly asked to
Diffstat (limited to 'src/test/rustdoc/inline_cross/auxiliary')
| -rw-r--r-- | src/test/rustdoc/inline_cross/auxiliary/use_crate.rs | 15 | ||||
| -rw-r--r-- | src/test/rustdoc/inline_cross/auxiliary/use_crate_2.rs | 11 |
2 files changed, 26 insertions, 0 deletions
diff --git a/src/test/rustdoc/inline_cross/auxiliary/use_crate.rs b/src/test/rustdoc/inline_cross/auxiliary/use_crate.rs new file mode 100644 index 00000000000..55202de1981 --- /dev/null +++ b/src/test/rustdoc/inline_cross/auxiliary/use_crate.rs @@ -0,0 +1,15 @@ +// Copyright 2018 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. + +pub mod asdf { + pub struct SomeStruct; +} + +pub trait SomeTrait {} diff --git a/src/test/rustdoc/inline_cross/auxiliary/use_crate_2.rs b/src/test/rustdoc/inline_cross/auxiliary/use_crate_2.rs new file mode 100644 index 00000000000..1f11cbc4da7 --- /dev/null +++ b/src/test/rustdoc/inline_cross/auxiliary/use_crate_2.rs @@ -0,0 +1,11 @@ +// Copyright 2018 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. + +pub struct SomethingElse; |
