Remove unused impl of GetDefId for Option<T>
This commit is contained in:
parent
6d82ee839d
commit
7fb1306275
1 changed files with 0 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue