1
Fork 0

Use {Local}ModDefId in many queries

This commit is contained in:
Nilstrieb 2023-04-26 20:53:51 +02:00 committed by Deadbeef
parent 40de40e094
commit c75fc573aa
26 changed files with 177 additions and 98 deletions

View file

@ -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 }