about summary refs log tree commit diff
path: root/library/std/src/ffi
diff options
context:
space:
mode:
authorAndrea Nall <anall@andreanall.com>2021-02-16 02:32:21 +0000
committerAndrea Nall <anall@andreanall.com>2021-02-16 02:32:21 +0000
commit67fcaaaa7a9c393926e25db600a9976137425d68 (patch)
tree200bffeac102eef6010cfe328b8ce914991e8558 /library/std/src/ffi
parentc6bb62810ae226b35e0181d8c4efc6d0377d196d (diff)
downloadrust-67fcaaaa7a9c393926e25db600a9976137425d68.tar.gz
rust-67fcaaaa7a9c393926e25db600a9976137425d68.zip
a few more diagnostic items
Diffstat (limited to 'library/std/src/ffi')
-rw-r--r--library/std/src/ffi/os_str.rs1
1 files changed, 1 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