diff options
| author | Max Wase <max.vvase@gmail.com> | 2021-06-18 14:17:21 +0300 |
|---|---|---|
| committer | Max Wase <max.vvase@gmail.com> | 2021-06-18 14:17:21 +0300 |
| commit | 01435fc83a5f3ed827d7ce618f4e3068a6ff964f (patch) | |
| tree | 03fe08a56aa631d386927da937cdc6043c86274c /library/std | |
| parent | f3c1db311c760770cccf5242bf383ab5bf4783a8 (diff) | |
| download | rust-01435fc83a5f3ed827d7ce618f4e3068a6ff964f.tar.gz rust-01435fc83a5f3ed827d7ce618f4e3068a6ff964f.zip | |
`no_run` and `ignore` doc attributes
Diffstat (limited to 'library/std')
| -rw-r--r-- | library/std/src/fs.rs | 3 | ||||
| -rw-r--r-- | library/std/src/path.rs | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 521693d7f2c..9076656f64e 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -1011,7 +1011,8 @@ impl Metadata { /// /// # Examples /// - /// ```no_run + #[cfg_attr(unix, doc = "```no_run")] + #[cfg_attr(not(unix), doc = "```ignore")] /// #![feature(is_symlink)] /// use std::fs; /// use std::path::Path; diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 055c9514445..272ea5a3686 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -2578,7 +2578,8 @@ impl Path { /// /// # Examples /// - /// ```no_run + #[cfg_attr(unix, doc = "```no_run")] + #[cfg_attr(not(unix), doc = "```ignore")] /// #![feature(is_symlink)] /// use std::path::Path; /// use std::os::unix::fs::symlink; |
