Skip to content

Commit 64f6111

Browse files
remove tests for doc(masked)
1 parent db09332 commit 64f6111

File tree

2 files changed

+0
-45
lines changed

2 files changed

+0
-45
lines changed

src/doc/unstable-book/src/language-features/doc-masked.md

-16
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,5 @@ This feature was introduced in PR [#44026] to ensure that compiler-internal and
2020
implementation-specific types and traits were not included in the standard library's documentation.
2121
Such types would introduce broken links into the documentation.
2222

23-
```rust
24-
#![feature(doc_masked)]
25-
26-
// Since std is automatically imported, we need to import it into a separate name to apply the
27-
// attribute. This is used as a simple demonstration, but any extern crate statement will suffice.
28-
#[doc(masked)]
29-
extern crate std as realstd;
30-
31-
/// A sample marker trait that exists on floating-point numbers, even though this page won't list
32-
/// them!
33-
pub trait MyMarker { }
34-
35-
impl MyMarker for f32 { }
36-
impl MyMarker for f64 { }
37-
```
38-
3923
[#44026]: https://github.com/rust-lang/rust/pull/44026
4024
[#44027]: https://github.com/rust-lang/rust/pull/44027

src/test/rustdoc/doc-masked.rs

-29
This file was deleted.

0 commit comments

Comments
 (0)