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.
This commit is contained in:
Matthias Krüger 2024-08-26 01:49:04 +02:00 committed by GitHub
commit d6a3aa4fc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 18 additions and 18 deletions

View file

@ -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);