Skip to content

Commit c8d3dfc

Browse files
committed
Use locally built cargo-clippy instead of the one from the system
1 parent 971219c commit c8d3dfc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/compile-test.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ fn run_ui_cargo() {
115115
"target/ui_test_cargo".into(),
116116
"--manifest-path".into(),
117117
];
118-
config.program = "cargo".into();
118+
config.program.set_file_name(if cfg!(windows) {
119+
"cargo-clippy.exe"
120+
} else {
121+
"cargo-clippy"
122+
});
119123
config.out_dir = None;
120124
config.edition = None;
121125

0 commit comments

Comments
 (0)