diff options
| author | Christian Duerr <contact@christianduerr.com> | 2017-11-30 21:18:36 +0100 |
|---|---|---|
| committer | Christian Duerr <contact@christianduerr.com> | 2017-11-30 21:18:36 +0100 |
| commit | 1df13c057a7f1937170fe600d24256f0bf943ec2 (patch) | |
| tree | ff7abedf96e6a30f199966b223c39e8e0fb514e2 /src/test/rustdoc | |
| parent | ec337b613ec5519a54f2948f9d8b7beea5cba86b (diff) | |
| download | rust-1df13c057a7f1937170fe600d24256f0bf943ec2.tar.gz rust-1df13c057a7f1937170fe600d24256f0bf943ec2.zip | |
Hide trait impl with private trait type parameter
Trait's implementations with private type parameters were displayed in the implementing struct's documentation until now. With this change any trait implementation that uses a private type parameter is now hidden in the docs.
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/issue-46380-2.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-46380-2.rs b/src/test/rustdoc/issue-46380-2.rs new file mode 100644 index 00000000000..93a1ee72013 --- /dev/null +++ b/src/test/rustdoc/issue-46380-2.rs @@ -0,0 +1,19 @@ +// Copyright 2015 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 PublicTrait<T> {} + +// @has issue_46380_2/struct.Public.html +pub struct PublicStruct; + +// @!has - '//*[@class="impl"]' 'impl Add<Private> for Public' +impl PublicTrait<PrivateStruct> for PublicStruct {} + +struct PrivateStruct; |
