We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CARGO_TARGET_DIR
1 parent 048e4d0 commit 343476dCopy full SHA for 343476d
tests/compile-test.rs
@@ -403,7 +403,8 @@ const RUSTFIX_COVERAGE_KNOWN_EXCEPTIONS: &[&str] = &[
403
];
404
405
fn check_rustfix_coverage() {
406
- let missing_coverage_path = Path::new("target/debug/test/ui/rustfix_missing_coverage.txt");
+ let target_dir = PathBuf::from(std::env::var("CARGO_TARGET_DIR").unwrap());
407
+ let missing_coverage_path = target_dir.join("debug/test/ui/rustfix_missing_coverage.txt");
408
409
if let Ok(missing_coverage_contents) = std::fs::read_to_string(missing_coverage_path) {
410
assert!(RUSTFIX_COVERAGE_KNOWN_EXCEPTIONS.iter().is_sorted_by_key(Path::new));
0 commit comments