about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorQuietMisdreavus <grey@quietmisdreavus.net>2017-09-05 13:56:30 -0500
committerQuietMisdreavus <grey@quietmisdreavus.net>2017-09-05 13:56:30 -0500
commit64f61113ebdc32ba5f9898fe191ca84fba6eeb94 (patch)
treebf796a000efab6ee4e6d3a19111583b22ef33620 /src
parentdb09332b39193a75f1de60372bf60b22f06381db (diff)
remove tests for doc(masked)
Diffstat (limited to 'src')
-rw-r--r--src/doc/unstable-book/src/language-features/doc-masked.md16
-rw-r--r--src/test/rustdoc/doc-masked.rs29
2 files changed, 0 insertions, 45 deletions
diff --git a/src/doc/unstable-book/src/language-features/doc-masked.md b/src/doc/unstable-book/src/language-features/doc-masked.md
index 5731afc8bc9..609939bfc22 100644
--- a/src/doc/unstable-book/src/language-features/doc-masked.md
+++ b/src/doc/unstable-book/src/language-features/doc-masked.md
@@ -20,21 +20,5 @@ This feature was introduced in PR [#44026] to ensure that compiler-internal and
 implementation-specific types and traits were not included in the standard library's documentation.
 Such types would introduce broken links into the documentation.
 
-```rust
-#![feature(doc_masked)]
-
-// Since std is automatically imported, we need to import it into a separate name to apply the
-// attribute. This is used as a simple demonstration, but any extern crate statement will suffice.
-#[doc(masked)]
-extern crate std as realstd;
-
-/// A sample marker trait that exists on floating-point numbers, even though this page won't list
-/// them!
-pub trait MyMarker { }
-
-impl MyMarker for f32 { }
-impl MyMarker for f64 { }
-```
-
 [#44026]: https://github.com/rust-lang/rust/pull/44026
 [#44027]: https://github.com/rust-lang/rust/pull/44027
diff --git a/src/test/rustdoc/doc-masked.rs b/src/test/rustdoc/doc-masked.rs
deleted file mode 100644
index 78d32028e36..00000000000
--- a/src/test/rustdoc/doc-masked.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2017 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.
-
-#![feature(doc_masked)]
-
-#![doc(masked)]
-extern crate std as realstd;
-
-// @has doc_masked/struct.LocalStruct.html
-// @has - '//*[@class="impl"]//code' 'impl LocalTrait for LocalStruct'
-// @!has - '//*[@class="impl"]//code' 'impl Copy for LocalStruct'
-#[derive(Copy, Clone)]
-pub struct LocalStruct;
-
-// @has doc_masked/trait.LocalTrait.html
-// @has - '//*[@id="implementors-list"]//code' 'impl LocalTrait for LocalStruct'
-// @!has - '//*[@id="implementors-list"]//code' 'impl LocalTrait for usize'
-pub trait LocalTrait { }
-
-impl LocalTrait for LocalStruct { }
-
-impl LocalTrait for usize { }