1
Fork 0

Simplify astconv item def id handling

This commit is contained in:
Oli Scherer 2022-10-31 16:19:36 +00:00
parent a876a4df32
commit ecea616052
4 changed files with 9 additions and 15 deletions

View file

@ -379,8 +379,8 @@ impl<'tcx> AstConv<'tcx> for ItemCtxt<'tcx> {
self.tcx
}
fn item_def_id(&self) -> Option<DefId> {
Some(self.item_def_id)
fn item_def_id(&self) -> DefId {
self.item_def_id
}
fn get_type_parameter_bounds(