diff options
| author | QuietMisdreavus <grey@quietmisdreavus.net> | 2018-08-21 16:22:20 -0500 |
|---|---|---|
| committer | QuietMisdreavus <grey@quietmisdreavus.net> | 2018-09-20 05:42:33 -0500 |
| commit | e79780f18f8697f50dabeda243f60314ed56f938 (patch) | |
| tree | 043624492367f9ca873b5b75d08ec30f4b0d60b9 /src/test/rustdoc/inline_local | |
| parent | a45d38744c9e715cdc51a036674915bc21d906ad (diff) | |
| download | rust-e79780f18f8697f50dabeda243f60314ed56f938.tar.gz rust-e79780f18f8697f50dabeda243f60314ed56f938.zip | |
don't check visibility when inlining local impls
those get handled properly in strip-hidden anyway
Diffstat (limited to 'src/test/rustdoc/inline_local')
| -rw-r--r-- | src/test/rustdoc/inline_local/trait-vis.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/test/rustdoc/inline_local/trait-vis.rs b/src/test/rustdoc/inline_local/trait-vis.rs new file mode 100644 index 00000000000..1035e357ef6 --- /dev/null +++ b/src/test/rustdoc/inline_local/trait-vis.rs @@ -0,0 +1,28 @@ +// Copyright 2012-2013 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 trait ThisTrait {} + +mod asdf { + use ThisTrait; + + pub struct SomeStruct; + + impl ThisTrait for SomeStruct {} + + trait PrivateTrait {} + + impl PrivateTrait for SomeStruct {} +} + +// @has trait_vis/struct.SomeStruct.html +// @has - '//code' 'impl ThisTrait for SomeStruct' +// !@has - '//code' 'impl PrivateTrait for SomeStruct' +pub use asdf::SomeStruct; |
