ty::context: clean some code a little

The explicit `return` was not needed
This commit is contained in:
Tshepang Mbambo
2026-02-01 00:31:55 +02:00
committed by GitHub
parent 8afe9ff1ca
commit 1684417326
+2 -3
View File
@@ -3470,10 +3470,9 @@ pub fn is_sdylib_interface_build(self) -> bool {
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 {