Simplify astconv item def id handling
This commit is contained in:
parent
a876a4df32
commit
ecea616052
4 changed files with 9 additions and 15 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue