mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Store specialized variable for use in dbg as fake symbol in lowlevel call
This commit is contained in:
parent
fe90355265
commit
a96225e92e
6 changed files with 48 additions and 8 deletions
|
@ -594,6 +594,13 @@ impl IdentId {
|
|||
pub const fn index(self) -> usize {
|
||||
self.0 as usize
|
||||
}
|
||||
|
||||
/// # Safety
|
||||
///
|
||||
/// The index is not guaranteed to know to exist.
|
||||
pub unsafe fn from_index(index: u32) -> Self {
|
||||
Self(index)
|
||||
}
|
||||
}
|
||||
|
||||
/// Stores a mapping between Ident and IdentId.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue