about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-08-06 14:46:30 -0400
committerRalf Jung <post@ralfj.de>2022-08-18 18:07:39 -0400
commit438e49c1cba71d7ff8a138a1b96058c2d9a9d217 (patch)
treefa8845e1cc01434474fb31716f4a48f05ea19eb2
parent8c8dc125b1bfca49ac8f064b365cb72a658e7cba (diff)
downloadrust-438e49c1cba71d7ff8a138a1b96058c2d9a9d217.tar.gz
rust-438e49c1cba71d7ff8a138a1b96058c2d9a9d217.zip
silence some unused-fn warnings in miri std builds
-rw-r--r--library/std/src/sys/unix/fs.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs
index 7778033eaa9..f38d2fd3d70 100644
--- a/library/std/src/sys/unix/fs.rs
+++ b/library/std/src/sys/unix/fs.rs
@@ -829,6 +829,7 @@ impl DirEntry {
         target_os = "fuchsia",
         target_os = "redox"
     )))]
+    #[cfg_attr(miri, allow(unused))]
     fn name_cstr(&self) -> &CStr {
         unsafe { CStr::from_ptr(self.entry.d_name.as_ptr()) }
     }
@@ -840,6 +841,7 @@ impl DirEntry {
         target_os = "fuchsia",
         target_os = "redox"
     ))]
+    #[cfg_attr(miri, allow(unused))]
     fn name_cstr(&self) -> &CStr {
         &self.name
     }