We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 834ec68 commit e7411a2Copy full SHA for e7411a2
compiler/rustc_incremental/src/persist/fs.rs
@@ -521,6 +521,19 @@ fn lock_directory(
521
or disable incremental compilation",
522
session_dir.display()
523
));
524
+ if std::env::var_os("CARGO").is_some() {
525
+ err.help(
526
+ "incremental compilation can be disabled by setting the \
527
+ environment variable CARGO_INCREMENTAL=0 (see \
528
+ https://doc.rust-lang.org/cargo/reference/profiles.html#incremental)",
529
+ );
530
531
+ "the entire build directory can be changed to a different \
532
+ filesystem by setting the environment variable CARGO_TARGET_DIR \
533
+ to a different path (see \
534
+ https://doc.rust-lang.org/cargo/reference/config.html#buildtarget-dir)",
535
536
+ }
537
}
538
err.emit();
539
Err(ErrorReported)
0 commit comments