]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/path.rs
a few more diagnostic items
[rust.git] / library / std / src / path.rs
index 759b233c7c138b80bb0371c5e5e55002da2c3c41..afb28518b727d9773f65e44e893ed44bb2bfea81 100644 (file)
@@ -1720,6 +1720,7 @@ fn as_ref(&self) -> &OsStr {
 /// 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