diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-10-21 20:03:11 -0700 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-10-22 13:07:43 -0700 |
| commit | 7fb13062757e0140bca4d1b2653a2cbc104d0edd (patch) | |
| tree | d124ca6e90cb5a3d96cee3ae4cd221b4bcc2390b | |
| parent | 6d82ee839d105c5fe6a142aabbbc7e48f55ee195 (diff) | |
| download | rust-7fb13062757e0140bca4d1b2653a2cbc104d0edd.tar.gz rust-7fb13062757e0140bca4d1b2653a2cbc104d0edd.zip | |
Remove unused impl of `GetDefId` for `Option<T>`
| -rw-r--r-- | src/librustdoc/clean/types.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index c872d6480fe..a3c6482bae7 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<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 { |
