mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
ty::context: clean some code a little
The explicit `return` was not needed
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user