We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba5b192 commit 8a487abCopy full SHA for 8a487ab
tests/testsuite/check.rs
@@ -870,7 +870,18 @@ fn check_keep_going() {
870
871
#[cargo_test]
872
fn does_not_use_empty_rustc_wrapper() {
873
- let p = project().file("src/lib.rs", "").build();
+ // An empty RUSTC_WRAPPER environment variable won't be used.
874
+ // The env var will also override the config, essentially unsetting it.
875
+ let p = project()
876
+ .file("src/lib.rs", "")
877
+ .file(
878
+ ".cargo/config.toml",
879
+ r#"
880
+ [build]
881
+ rustc-wrapper = "do-not-execute-me"
882
+ "#,
883
+ )
884
+ .build();
885
p.cargo("check").env("RUSTC_WRAPPER", "").run();
886
}
887
0 commit comments