We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GetDefId
Option<T>
1 parent 6d82ee8 commit 7fb1306Copy full SHA for 7fb1306
src/librustdoc/clean/types.rs
@@ -1469,16 +1469,6 @@ crate trait GetDefId {
1469
fn def_id_full(&self, cache: &Cache) -> Option<DefId>;
1470
}
1471
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
1482
impl Type {
1483
crate fn primitive_type(&self) -> Option<PrimitiveType> {
1484
match *self {
0 commit comments