no_run and ignore doc attributes

This commit is contained in:
Max Wase 2021-06-18 14:17:21 +03:00
parent f3c1db311c
commit 01435fc83a
2 changed files with 4 additions and 2 deletions

View File

@ -1011,7 +1011,8 @@ pub fn is_file(&self) -> bool {
///
/// # 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;

View File

@ -2578,7 +2578,8 @@ pub fn is_dir(&self) -> bool {
///
/// # 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;