Skip to content

Commit 01435fc

Browse files
committed
no_run and ignore doc attributes
1 parent f3c1db3 commit 01435fc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

library/std/src/fs.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,8 @@ impl Metadata {
10111011
///
10121012
/// # Examples
10131013
///
1014-
/// ```no_run
1014+
#[cfg_attr(unix, doc = "```no_run")]
1015+
#[cfg_attr(not(unix), doc = "```ignore")]
10151016
/// #![feature(is_symlink)]
10161017
/// use std::fs;
10171018
/// use std::path::Path;

library/std/src/path.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2578,7 +2578,8 @@ impl Path {
25782578
///
25792579
/// # Examples
25802580
///
2581-
/// ```no_run
2581+
#[cfg_attr(unix, doc = "```no_run")]
2582+
#[cfg_attr(not(unix), doc = "```ignore")]
25822583
/// #![feature(is_symlink)]
25832584
/// use std::path::Path;
25842585
/// use std::os::unix::fs::symlink;

0 commit comments

Comments
 (0)