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.
1 parent 4459d14 commit b916795Copy full SHA for b916795
src/bin/cargo-miri.rs
@@ -145,8 +145,9 @@ fn setup(ask_user: bool) {
145
}
146
147
148
- // Next, we need our own libstd. We will do this work in ~/.miri.
149
- let dir = directories::UserDirs::new().unwrap().home_dir().join(".miri");
+ // Next, we need our own libstd. We will do this work in whatever is a good cache dir for this platform.
+ let dirs = directories::ProjectDirs::from("miri", "miri", "miri").unwrap();
150
+ let dir = dirs.cache_dir();
151
if !dir.exists() {
152
fs::create_dir(&dir).unwrap();
153
0 commit comments