diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-26 01:49:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-26 01:49:04 +0200 |
| commit | d6a3aa4fc46d403d26afd085a3d0fd28c2269b94 (patch) | |
| tree | 9059d903e5869b3b5501a8f3e5d36d85d093b9ff /compiler/rustc_trait_selection/src | |
| parent | 0a8e305d91719c2f248ba40fe52fd49409ab1692 (diff) | |
| parent | 48f43fa0ed2f2e4ff2d9d53b9d72cfbc108a9034 (diff) | |
| download | rust-d6a3aa4fc46d403d26afd085a3d0fd28c2269b94.tar.gz rust-d6a3aa4fc46d403d26afd085a3d0fd28c2269b94.zip | |
Rollup merge of #129590 - compiler-errors:ref-tykind, r=fmease
Avoid taking reference of &TyKind It's already a ref anyways. Just a tiny cleanup here.
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/error_reporting/infer/suggest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/error_reporting/infer/suggest.rs b/compiler/rustc_trait_selection/src/error_reporting/infer/suggest.rs index 35f68a56d2d..ba656493d46 100644 --- a/compiler/rustc_trait_selection/src/error_reporting/infer/suggest.rs +++ b/compiler/rustc_trait_selection/src/error_reporting/infer/suggest.rs @@ -382,7 +382,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> { if !expected_inner.is_fn() || !found_inner.is_fn() { return; } - match (&expected_inner.kind(), &found_inner.kind()) { + match (expected_inner.kind(), found_inner.kind()) { (ty::FnPtr(sig_tys, hdr), ty::FnDef(did, args)) => { let sig = sig_tys.with(*hdr); let expected_sig = &(self.normalize_fn_sig)(sig); |
