]> git.lizzy.rs Git - rust.git/commitdiff
more comment
authorRalf Jung <post@ralfj.de>
Sat, 9 May 2020 09:54:35 +0000 (11:54 +0200)
committerRalf Jung <post@ralfj.de>
Sat, 9 May 2020 09:54:45 +0000 (11:54 +0200)
src/bin/cargo-miri.rs

index 8b238a7f797294e420f46f3784faf068b61b2eb4..8bd9947092a783854c8461a357eaa2cdf6ba54a8 100644 (file)
@@ -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()
     }