Use {Local}ModDefId
in many queries
This commit is contained in:
parent
40de40e094
commit
c75fc573aa
26 changed files with 177 additions and 98 deletions
|
@ -28,7 +28,7 @@ impl CrateNum {
|
|||
CrateNum::from_usize(x)
|
||||
}
|
||||
|
||||
// FIXME(Nilstrieb): Replace this with `as_mod_def_id`.
|
||||
// FIXME(typed_def_id): Replace this with `as_mod_def_id`.
|
||||
#[inline]
|
||||
pub fn as_def_id(self) -> DefId {
|
||||
DefId { krate: self, index: CRATE_DEF_INDEX }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue