about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/std/src/fs.rs3
-rw-r--r--library/std/src/path.rs3
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;