Skip to content

Commit 438e49c

Browse files
committed
silence some unused-fn warnings in miri std builds
1 parent 8c8dc12 commit 438e49c

File tree

1 file changed

+2
-0
lines changed
  • library/std/src/sys/unix

1 file changed

+2
-0
lines changed

library/std/src/sys/unix/fs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,7 @@ impl DirEntry {
829829
target_os = "fuchsia",
830830
target_os = "redox"
831831
)))]
832+
#[cfg_attr(miri, allow(unused))]
832833
fn name_cstr(&self) -> &CStr {
833834
unsafe { CStr::from_ptr(self.entry.d_name.as_ptr()) }
834835
}
@@ -840,6 +841,7 @@ impl DirEntry {
840841
target_os = "fuchsia",
841842
target_os = "redox"
842843
))]
844+
#[cfg_attr(miri, allow(unused))]
843845
fn name_cstr(&self) -> &CStr {
844846
&self.name
845847
}

0 commit comments

Comments
 (0)