diff options
| author | Andrea Nall <anall@andreanall.com> | 2021-02-16 02:32:21 +0000 |
|---|---|---|
| committer | Andrea Nall <anall@andreanall.com> | 2021-02-16 02:32:21 +0000 |
| commit | 67fcaaaa7a9c393926e25db600a9976137425d68 (patch) | |
| tree | 200bffeac102eef6010cfe328b8ce914991e8558 /library/std/src | |
| parent | c6bb62810ae226b35e0181d8c4efc6d0377d196d (diff) | |
| download | rust-67fcaaaa7a9c393926e25db600a9976137425d68.tar.gz rust-67fcaaaa7a9c393926e25db600a9976137425d68.zip | |
a few more diagnostic items
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/ffi/os_str.rs | 1 | ||||
| -rw-r--r-- | library/std/src/path.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/ffi/os_str.rs b/library/std/src/ffi/os_str.rs index 6af5adf4cd8..13c8022820b 100644 --- a/library/std/src/ffi/os_str.rs +++ b/library/std/src/ffi/os_str.rs @@ -90,6 +90,7 @@ pub struct OsString { /// /// [`&str`]: str /// [conversions]: super#conversions +#[cfg_attr(not(test), rustc_diagnostic_item = "OsStr")] #[stable(feature = "rust1", since = "1.0.0")] // FIXME: // `OsStr::from_inner` current implementation relies diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 759b233c7c1..afb28518b72 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -1720,6 +1720,7 @@ impl AsRef<OsStr> for PathBuf { /// let extension = path.extension(); /// assert_eq!(extension, Some(OsStr::new("txt"))); /// ``` +#[cfg_attr(not(test), rustc_diagnostic_item = "Path")] #[stable(feature = "rust1", since = "1.0.0")] // FIXME: // `Path::new` current implementation relies |
