Skip to content

Commit 7fb1306

Browse files
committed
Remove unused impl of GetDefId for Option<T>
1 parent 6d82ee8 commit 7fb1306

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/librustdoc/clean/types.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,16 +1469,6 @@ crate trait GetDefId {
14691469
fn def_id_full(&self, cache: &Cache) -> Option<DefId>;
14701470
}
14711471

1472-
impl<T: GetDefId> GetDefId for Option<T> {
1473-
fn def_id(&self) -> Option<DefId> {
1474-
self.as_ref().and_then(|d| d.def_id())
1475-
}
1476-
1477-
fn def_id_full(&self, cache: &Cache) -> Option<DefId> {
1478-
self.as_ref().and_then(|d| d.def_id_full(cache))
1479-
}
1480-
}
1481-
14821472
impl Type {
14831473
crate fn primitive_type(&self) -> Option<PrimitiveType> {
14841474
match *self {

0 commit comments

Comments
 (0)