Add stable_mir::DefId as new type wrapper

This commit is contained in:
Santiago Pastorino
2023-08-28 15:56:45 -03:00
parent e9710f1faa
commit af6299a1f7
3 changed files with 23 additions and 15 deletions

View File

@@ -29,7 +29,8 @@ pub type Symbol = String;
pub type CrateNum = usize;
/// A unique identification number for each item accessible for the current compilation unit.
pub type DefId = usize;
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
pub struct DefId(pub(crate) usize);
/// A list of crate items.
pub type CrateItems = Vec<CrateItem>;