From: Ralf Jung Date: Sat, 9 May 2020 09:54:35 +0000 (+0200) Subject: more comment X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=20097be2feaaa92c3a2843fb1c57c6a28d3dcf29;p=rust.git more comment --- diff --git a/src/bin/cargo-miri.rs b/src/bin/cargo-miri.rs index 8b238a7f797..8bd9947092a 100644 --- a/src/bin/cargo-miri.rs +++ b/src/bin/cargo-miri.rs @@ -502,7 +502,8 @@ fn inside_cargo_rustc() { /// /// Currently, we detect this by checking for "--target=", which is /// never set for host crates. This matches what rustc bootstrap does, - /// which hopefully makes it "reliable enough". + /// which hopefully makes it "reliable enough". This relies on us always + /// invoking cargo itself with `--target`, which `in_cargo_miri` ensures. fn is_target_crate() -> bool { get_arg_flag_value("--target").is_some() }