no_run
and ignore
doc attributes
This commit is contained in:
parent
f3c1db311c
commit
01435fc83a
2 changed files with 4 additions and 2 deletions
|
@ -1011,7 +1011,8 @@ impl Metadata {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```no_run
|
#[cfg_attr(unix, doc = "```no_run")]
|
||||||
|
#[cfg_attr(not(unix), doc = "```ignore")]
|
||||||
/// #![feature(is_symlink)]
|
/// #![feature(is_symlink)]
|
||||||
/// use std::fs;
|
/// use std::fs;
|
||||||
/// use std::path::Path;
|
/// use std::path::Path;
|
||||||
|
|
|
@ -2578,7 +2578,8 @@ impl Path {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```no_run
|
#[cfg_attr(unix, doc = "```no_run")]
|
||||||
|
#[cfg_attr(not(unix), doc = "```ignore")]
|
||||||
/// #![feature(is_symlink)]
|
/// #![feature(is_symlink)]
|
||||||
/// use std::path::Path;
|
/// use std::path::Path;
|
||||||
/// use std::os::unix::fs::symlink;
|
/// use std::os::unix::fs::symlink;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue