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:
Matthias Krüger
2024-08-21 18:15:06 +02:00
committed by GitHub
16 changed files with 19 additions and 30 deletions

View File

@@ -216,7 +216,7 @@ fn check_start_fn_ty(tcx: TyCtxt<'_>, start_def_id: DefId) {
}
if sig.header.asyncness.is_async() {
let span = tcx.def_span(it.owner_id);
tcx.dcx().emit_err(errors::StartAsync { span: span });
tcx.dcx().emit_err(errors::StartAsync { span });
error = true;
}