more comment

This commit is contained in:
Ralf Jung 2020-05-09 11:54:35 +02:00
parent 1ba42b9f55
commit 20097be2fe

View 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()
}