Skip to content

Commit 5a45dbe

Browse files
committed
Auto merge of rust-lang#118947 - Bryanskiy:delegStep1, r=petrochenkov,lcnr
Delegation implementation: step 1 See rust-lang#118212 for more details. r? `@petrochenkov`
2 parents e9f8713 + 09d0241 commit 5a45dbe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clippy_lints/src/dereference.rs

+1
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,7 @@ impl TyCoercionStability {
830830
| TyKind::Infer
831831
| TyKind::Typeof(..)
832832
| TyKind::TraitObject(..)
833+
| TyKind::InferDelegation(..)
833834
| TyKind::Err(_) => Self::Reborrow,
834835
};
835836
}

clippy_utils/src/hir_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
11081108
TyKind::Typeof(anon_const) => {
11091109
self.hash_body(anon_const.body);
11101110
},
1111-
TyKind::Err(_) | TyKind::Infer | TyKind::Never => {},
1111+
TyKind::Err(_) | TyKind::Infer | TyKind::Never | TyKind::InferDelegation(..) => {},
11121112
}
11131113
}
11141114

0 commit comments

Comments
 (0)