diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-04-17 18:43:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-17 18:43:17 +0200 |
| commit | 92d29c1267cffd65e80648ea463221f765236ebb (patch) | |
| tree | 9e9bc87c0b5f8a161a6eebf3f8c8011027b603d7 /src/test/rustdoc | |
| parent | 6f5fc47ccc47319151203fbfde4b2692863c44a0 (diff) | |
| parent | abded6111bcdaf53a74abb5188d81708180a364f (diff) | |
| download | rust-92d29c1267cffd65e80648ea463221f765236ebb.tar.gz rust-92d29c1267cffd65e80648ea463221f765236ebb.zip | |
Rollup merge of #50032 - ollie27:rustdoc_all_private, r=GuillaumeGomez
rustdoc: Don't include private paths in all.html For example the `std` [`all.html`](https://doc.rust-lang.org/nightly/std/all.html) includes references to the `coresimd` module which is a private implementation detail. r? @GuillaumeGomez
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/all.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/rustdoc/all.rs b/src/test/rustdoc/all.rs index ec391319b18..1969cf859ee 100644 --- a/src/test/rustdoc/all.rs +++ b/src/test/rustdoc/all.rs @@ -28,3 +28,11 @@ pub union Union { pub const CONST: u32 = 0; pub static STATIC: &str = "baguette"; pub fn function() {} + +mod private_module { + pub struct ReexportedStruct; +} + +// @has foo/all.html '//a[@href="struct.ReexportedStruct.html"]' 'ReexportedStruct' +// @!has foo/all.html 'private_module' +pub use private_module::ReexportedStruct; |
