about summary refs log tree commit diff
path: root/compiler/rustc_incremental/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-21 18:15:06 +0200
committerGitHub <noreply@github.com>2024-08-21 18:15:06 +0200
commit4137f3bc15d25a9a21f809274dc29c13462d97a3 (patch)
tree8a6bdc56a32006f433fe7631a68deb53e6eb63b0 /compiler/rustc_incremental/src
parent937a18daf986e0a1a4ffa0b8f28c8f5d9b56e1a3 (diff)
parent0b2525c787454fa9afabd7bb8d60782af03fee5f (diff)
downloadrust-4137f3bc15d25a9a21f809274dc29c13462d97a3.tar.gz
rust-4137f3bc15d25a9a21f809274dc29c13462d97a3.zip
Rollup merge of #129345 - compiler-errors:scratch4, r=jieyouxu
Use shorthand field initialization syntax more aggressively in the compiler

Caught these when cleaning up #129344 and decided to run clippy to find the rest
Diffstat (limited to 'compiler/rustc_incremental/src')
-rw-r--r--compiler/rustc_incremental/src/persist/fs.rs2
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 253d53c83fb..0e87bc1e692 100644
--- a/compiler/rustc_incremental/src/persist/fs.rs
+++ b/compiler/rustc_incremental/src/persist/fs.rs
@@ -851,7 +851,7 @@ fn delete_old(sess: &Session, path: &Path) {
     debug!("garbage_collect_session_directories() - deleting `{}`", path.display());
 
     if let Err(err) = safe_remove_dir_all(path) {
-        sess.dcx().emit_warn(errors::SessionGcFailed { path: path, err });
+        sess.dcx().emit_warn(errors::SessionGcFailed { path, err });
     } else {
         delete_session_dir_lock_file(sess, &lock_file_path(path));
     }