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
This commit is contained in:
commit
4137f3bc15
16 changed files with 19 additions and 30 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue