diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-21 18:15:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-21 18:15:06 +0200 |
| commit | 4137f3bc15d25a9a21f809274dc29c13462d97a3 (patch) | |
| tree | 8a6bdc56a32006f433fe7631a68deb53e6eb63b0 /compiler/rustc_trait_selection/src | |
| parent | 937a18daf986e0a1a4ffa0b8f28c8f5d9b56e1a3 (diff) | |
| parent | 0b2525c787454fa9afabd7bb8d60782af03fee5f (diff) | |
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_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/auto_trait.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/auto_trait.rs b/compiler/rustc_trait_selection/src/traits/auto_trait.rs index 29f78f9d5f0..38d338598a1 100644 --- a/compiler/rustc_trait_selection/src/traits/auto_trait.rs +++ b/compiler/rustc_trait_selection/src/traits/auto_trait.rs @@ -770,7 +770,7 @@ impl<'tcx> AutoTraitFinder<'tcx> { let reported = tcx.dcx().emit_err(UnableToConstructConstantValue { span: tcx.def_span(unevaluated.def), - unevaluated: unevaluated, + unevaluated, }); Err(ErrorHandled::Reported(reported.into(), tcx.def_span(unevaluated.def))) } |
