From 00644c12ed77e6f3e5bf38d98e359d101e3f9188 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 30 May 2024 10:23:54 +0200 Subject: [PATCH] add a comment --- .../miri/test-cargo-miri/test-local-crate-detection/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/miri/test-cargo-miri/test-local-crate-detection/src/main.rs b/src/tools/miri/test-cargo-miri/test-local-crate-detection/src/main.rs index 94acf9b7b229..0991aa384607 100644 --- a/src/tools/miri/test-cargo-miri/test-local-crate-detection/src/main.rs +++ b/src/tools/miri/test-cargo-miri/test-local-crate-detection/src/main.rs @@ -1,3 +1,5 @@ fn main() { + // Make sure we detect all crates from this workspace as "local". + // The env var is set during the "build" so we can use `env!` to access it directly. println!("{}", env!("MIRI_LOCAL_CRATES")); }