We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c8dc12 commit 438e49cCopy full SHA for 438e49c
1 file changed
library/std/src/sys/unix/fs.rs
@@ -829,6 +829,7 @@ impl DirEntry {
829
target_os = "fuchsia",
830
target_os = "redox"
831
)))]
832
+ #[cfg_attr(miri, allow(unused))]
833
fn name_cstr(&self) -> &CStr {
834
unsafe { CStr::from_ptr(self.entry.d_name.as_ptr()) }
835
}
@@ -840,6 +841,7 @@ impl DirEntry {
840
841
842
843
))]
844
845
846
&self.name
847
0 commit comments