File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,9 @@ impl<'a> Cargo<'a> {
120
120
/// * Place all output artifact to `target/cov/build/` instead of `target/`, so the profiled objects will not
121
121
/// interfere with normal objects
122
122
/// * Configure `cargo` to use [`cargo-cov` shims](../shim/index.html) when building and running tests.
123
+ /// * Disable incremental compilation to workaround rustc issue [#50203].
124
+ ///
125
+ /// [#50203]: https://github.com/rust-lang/rust/issues/50203
123
126
fn prepare_cov_build_path ( & self ) -> Result < ( ) > {
124
127
let self_path = match current_exe ( ) {
125
128
Ok ( path) => escape ( Cow :: Owned ( path. into_string_lossy ( ) ) ) . into_owned ( ) ,
@@ -150,6 +153,7 @@ impl<'a> Cargo<'a> {
150
153
target_dir : "." ,
151
154
rustc : & rustc_shim,
152
155
rustdoc : & rustdoc_shim,
156
+ incremental : false ,
153
157
} ,
154
158
target,
155
159
} ) ?;
@@ -338,6 +342,7 @@ struct CargoConfigBuild<'a> {
338
342
target_dir : & ' a str ,
339
343
rustc : & ' a Path ,
340
344
rustdoc : & ' a Path ,
345
+ incremental : bool ,
341
346
}
342
347
343
348
#[ derive( Debug , Serialize ) ]
You can’t perform that action at this time.
0 commit comments