Rollup merge of #151928 - tshepang:patch-2, r=Kivooeo

ty::context: clean some code a little

The explicit `return` was not needed
This commit is contained in:
Stuart Cook 2026-02-01 14:26:47 +11:00 committed by GitHub
commit 191c915560
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3470,10 +3470,9 @@ impl<'tcx> TyCtxt<'tcx> {
pub fn intrinsic(self, def_id: impl IntoQueryParam<DefId> + Copy) -> Option<ty::IntrinsicDef> {
match self.def_kind(def_id) {
DefKind::Fn | DefKind::AssocFn => {}
_ => return None,
DefKind::Fn | DefKind::AssocFn => self.intrinsic_raw(def_id),
_ => None,
}
self.intrinsic_raw(def_id)
}
pub fn next_trait_solver_globally(self) -> bool {