Skip to content

Commit 2481d60

Browse files
committed
warn when cargo miri setup does not do anything
1 parent f26c2cb commit 2481d60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bin/cargo-miri.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ fn ask(question: &str) {
172172
/// done all this already.
173173
fn setup(ask_user: bool) {
174174
if std::env::var("MIRI_SYSROOT").is_ok() {
175+
if !ask_user {
176+
println!("WARNING: MIRI_SYSROOT already set, not doing anything.")
177+
}
175178
return;
176179
}
177180

0 commit comments

Comments
 (0)