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 2ba6f8c commit da0dfd3Copy full SHA for da0dfd3
tests/testsuite/check.rs
@@ -1684,3 +1684,28 @@ fn pkgid_querystring_works() {
1684
"#]])
1685
.run();
1686
}
1687
+
1688
+#[cargo_test]
1689
+fn check_build_should_not_output_files_to_artifact_dir() {
1690
+ let p = project()
1691
+ .file("src/main.rs", r#"fn main() { println!("Hello, World!") }"#)
1692
+ .file(
1693
+ ".cargo/config.toml",
1694
+ r#"
1695
+ [build]
1696
+ target-dir = "target-dir"
1697
+ build-dir = "build-dir"
1698
+ "#,
1699
+ )
1700
+ .build();
1701
1702
+ p.cargo("check").enable_mac_dsym().run();
1703
1704
+ p.root()
1705
+ .join("target-dir")
1706
+ .assert_build_dir_layout(str![[r#"
1707
+[ROOT]/foo/target-dir/CACHEDIR.TAG
1708
+[ROOT]/foo/target-dir/debug/.cargo-lock
1709
1710
+"#]]);
1711
+}
0 commit comments