diff options
| author | Urgau <urgau@numericable.fr> | 2024-02-17 16:45:59 +0100 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2024-02-17 16:49:01 +0100 |
| commit | d988d8f4ba069e11ace537feea4e4e226e7f4afe (patch) | |
| tree | 1eb3889c87093c5fdaf3dc22617c69f8479105f2 /compiler/rustc_incremental | |
| parent | bccb9bbb418a30aeb332052e721beb6ebc6b1ce7 (diff) | |
| download | rust-d988d8f4ba069e11ace537feea4e4e226e7f4afe.tar.gz rust-d988d8f4ba069e11ace537feea4e4e226e7f4afe.zip | |
Use better heuristic for printing Cargo specific diagnostics
Diffstat (limited to 'compiler/rustc_incremental')
| -rw-r--r-- | compiler/rustc_incremental/src/persist/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_incremental/src/persist/fs.rs b/compiler/rustc_incremental/src/persist/fs.rs index 2578f284dee..23d29916922 100644 --- a/compiler/rustc_incremental/src/persist/fs.rs +++ b/compiler/rustc_incremental/src/persist/fs.rs @@ -492,7 +492,7 @@ fn lock_directory( lock_err, session_dir, is_unsupported_lock, - is_cargo: std::env::var_os("CARGO").map(|_| ()), + is_cargo: rustc_session::utils::was_invoked_from_cargo().then_some(()), })) } } |
