Remove unused impl of GetDefId for Option<T>

This commit is contained in:
Noah Lev 2021-10-21 20:03:11 -07:00
parent 6d82ee839d
commit 7fb1306275

View file

@ -1469,16 +1469,6 @@ crate trait GetDefId {
fn def_id_full(&self, cache: &Cache) -> Option<DefId>;
}
impl<T: GetDefId> GetDefId for Option<T> {
fn def_id(&self) -> Option<DefId> {
self.as_ref().and_then(|d| d.def_id())
}
fn def_id_full(&self, cache: &Cache) -> Option<DefId> {
self.as_ref().and_then(|d| d.def_id_full(cache))
}
}
impl Type {
crate fn primitive_type(&self) -> Option<PrimitiveType> {
match *self {