Closed
Description
Most uses of that method mostly directly unwrap or just want to know the DefId
. So we could use several kind of convenience wrappers:
-
fn opt_type_dependent_def(&self, id: HirId) -> Option<Def>
-
fn type_dependent_def(&self, id: HirId) -> Def
-
fn type_dependent_def_id(&self, id: HirId) -> DefId