Replace GetDefId
with inherent methods
Now that it's only implemented for `Type`, using inherent methods instead means that imports are no longer necessary. Also, `GetDefId` is only meant to be used with `Type`, so it shouldn't be a trait.
This commit is contained in:
parent
7fb1306275
commit
bf0cc90050
7 changed files with 20 additions and 32 deletions
|
@ -6,7 +6,7 @@ use rustc_middle::middle::privacy::AccessLevels;
|
|||
use rustc_middle::ty::TyCtxt;
|
||||
use rustc_span::symbol::sym;
|
||||
|
||||
use crate::clean::{self, GetDefId, ItemId, PrimitiveType};
|
||||
use crate::clean::{self, ItemId, PrimitiveType};
|
||||
use crate::config::RenderOptions;
|
||||
use crate::fold::DocFolder;
|
||||
use crate::formats::item_type::ItemType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue