no_run and ignore doc attributes
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user