mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
unchecked in making the rank table
This commit is contained in:
parent
e20ac3f38f
commit
a705d6a6e8
2 changed files with 7 additions and 2 deletions
|
@ -118,6 +118,7 @@ impl UnificationTable {
|
|||
self.marks[key.index() as usize]
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
#[inline(always)]
|
||||
pub fn get_copy_unchecked(&self, key: Variable) -> OptVariable {
|
||||
self.copies[key.index() as usize]
|
||||
|
@ -163,11 +164,13 @@ impl UnificationTable {
|
|||
self.marks[key.index() as usize] = value;
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
#[inline(always)]
|
||||
pub fn set_copy_unchecked(&mut self, key: Variable, value: OptVariable) {
|
||||
self.copies[key.index() as usize] = value;
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
#[inline(always)]
|
||||
pub fn set_content_unchecked(&mut self, key: Variable, value: Content) {
|
||||
self.contents[key.index() as usize] = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue