We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ba42b9 commit 20097beCopy full SHA for 20097be
src/bin/cargo-miri.rs
@@ -502,7 +502,8 @@ fn inside_cargo_rustc() {
502
///
503
/// Currently, we detect this by checking for "--target=", which is
504
/// never set for host crates. This matches what rustc bootstrap does,
505
- /// which hopefully makes it "reliable enough".
+ /// which hopefully makes it "reliable enough". This relies on us always
506
+ /// invoking cargo itself with `--target`, which `in_cargo_miri` ensures.
507
fn is_target_crate() -> bool {
508
get_arg_flag_value("--target").is_some()
509
}
0 commit comments