We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b62ee10 commit 1287effCopy full SHA for 1287eff
library/std/src/sys/pal/unix/os.rs
@@ -765,7 +765,8 @@ fn darwin_temp_dir() -> PathBuf {
765
pub fn temp_dir() -> PathBuf {
766
crate::env::var_os("TMPDIR").map(PathBuf::from).unwrap_or_else(|| {
767
cfg_if::cfg_if! {
768
- if #[cfg(target_vendor = "apple")] {
+ // FIXME: Support `confstr` in Miri.
769
+ if #[cfg(all(target_vendor = "apple", not(miri)))] {
770
darwin_temp_dir()
771
} else if #[cfg(target_os = "android")] {
772
PathBuf::from("/data/local/tmp")
0 commit comments