diff options
| author | Ralf Jung <post@ralfj.de> | 2022-08-06 14:46:30 -0400 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-08-18 18:07:39 -0400 |
| commit | 438e49c1cba71d7ff8a138a1b96058c2d9a9d217 (patch) | |
| tree | fa8845e1cc01434474fb31716f4a48f05ea19eb2 | |
| parent | 8c8dc125b1bfca49ac8f064b365cb72a658e7cba (diff) | |
| download | rust-438e49c1cba71d7ff8a138a1b96058c2d9a9d217.tar.gz rust-438e49c1cba71d7ff8a138a1b96058c2d9a9d217.zip | |
silence some unused-fn warnings in miri std builds
| -rw-r--r-- | library/std/src/sys/unix/fs.rs | 2 |
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 } |
