remove_dir_all: use fallback implementation on Miri
This commit is contained in:
parent
64187b8374
commit
2a2b212ea3
@ -1480,14 +1480,14 @@ pub fn chroot(dir: &Path) -> io::Result<()> {
|
||||
|
||||
pub use remove_dir_impl::remove_dir_all;
|
||||
|
||||
// Fallback for REDOX and ESP-IDF
|
||||
#[cfg(any(target_os = "redox", target_os = "espidf"))]
|
||||
// Fallback for REDOX and ESP-IDF (and Miri)
|
||||
#[cfg(any(target_os = "redox", target_os = "espidf", miri))]
|
||||
mod remove_dir_impl {
|
||||
pub use crate::sys_common::fs::remove_dir_all;
|
||||
}
|
||||
|
||||
// Modern implementation using openat(), unlinkat() and fdopendir()
|
||||
#[cfg(not(any(target_os = "redox", target_os = "espidf")))]
|
||||
#[cfg(not(any(target_os = "redox", target_os = "espidf", miri)))]
|
||||
mod remove_dir_impl {
|
||||
use super::{cstr, lstat, Dir, DirEntry, InnerReadDir, ReadDir};
|
||||
use crate::ffi::CStr;
|
||||
|
Loading…
Reference in New Issue
Block a user