diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index c872d6480fef..a3c6482bae7a 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -1469,16 +1469,6 @@ crate trait GetDefId { fn def_id_full(&self, cache: &Cache) -> Option; } -impl GetDefId for Option { - fn def_id(&self) -> Option { - self.as_ref().and_then(|d| d.def_id()) - } - - fn def_id_full(&self, cache: &Cache) -> Option { - self.as_ref().and_then(|d| d.def_id_full(cache)) - } -} - impl Type { crate fn primitive_type(&self) -> Option { match *self {