Skip to content

Commit 20097be

Browse files
committed
more comment
1 parent 1ba42b9 commit 20097be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/cargo-miri.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,8 @@ fn inside_cargo_rustc() {
502502
///
503503
/// Currently, we detect this by checking for "--target=", which is
504504
/// never set for host crates. This matches what rustc bootstrap does,
505-
/// which hopefully makes it "reliable enough".
505+
/// which hopefully makes it "reliable enough". This relies on us always
506+
/// invoking cargo itself with `--target`, which `in_cargo_miri` ensures.
506507
fn is_target_crate() -> bool {
507508
get_arg_flag_value("--target").is_some()
508509
}

0 commit comments

Comments
 (0)