We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2bd49c3 + 20ab57e commit 8a29784Copy full SHA for 8a29784
library/std/src/sys/unix/fs.rs
@@ -1,3 +1,6 @@
1
+// miri has some special hacks here that make things unused.
2
+#![cfg_attr(miri, allow(unused))]
3
+
4
use crate::os::unix::prelude::*;
5
6
use crate::ffi::{CStr, OsStr, OsString};
@@ -850,7 +853,6 @@ impl DirEntry {
850
853
target_os = "fuchsia",
851
854
target_os = "redox"
852
855
)))]
- #[cfg_attr(miri, allow(unused))]
856
fn name_cstr(&self) -> &CStr {
857
unsafe { CStr::from_ptr(self.entry.d_name.as_ptr()) }
858
}
@@ -862,7 +864,6 @@ impl DirEntry {
862
864
863
865
866
))]
867
868
&self.name
869
0 commit comments