mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Don't make from_reserved_index public
This commit is contained in:
parent
856ee91642
commit
68d6de79de
1 changed files with 3 additions and 1 deletions
|
@ -242,7 +242,7 @@ impl<'a> InLayout<'a> {
|
|||
/// let inserted = interner.insert("something");
|
||||
/// assert_eq!(reserved_interned, inserted);
|
||||
/// ```
|
||||
pub(crate) const unsafe fn from_reserved_index(index: usize) -> Self {
|
||||
const unsafe fn from_reserved_index(index: usize) -> Self {
|
||||
Self(index, PhantomData)
|
||||
}
|
||||
}
|
||||
|
@ -403,6 +403,8 @@ impl<'a> GlobalLayoutInterner<'a> {
|
|||
|
||||
vec.push(lambda_set_layout);
|
||||
|
||||
// TODO: Is it helpful to persist the hash and give it back to the thread-local
|
||||
// interner?
|
||||
let _old = map.insert(lambda_set_layout, slot);
|
||||
debug_assert!(_old.is_none());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue