mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-31 17:12:53 +00:00
silence some unused-fn warnings in miri std builds
This commit is contained in:
parent
8c8dc125b1
commit
438e49c1cb
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user