mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
make instantiate_rigids_help use a loop/stack
This commit is contained in:
parent
991420731d
commit
497bc2db02
2 changed files with 69 additions and 91 deletions
|
@ -79,7 +79,7 @@ pub struct SubsSlice<T> {
|
|||
|
||||
/// An index into the Vec<T> of subs
|
||||
pub struct SubsIndex<T> {
|
||||
start: u32,
|
||||
pub start: u32,
|
||||
_marker: std::marker::PhantomData<T>,
|
||||
}
|
||||
|
||||
|
@ -1525,7 +1525,7 @@ pub enum Builtin {
|
|||
|
||||
#[derive(Clone, Copy, Debug, Default)]
|
||||
pub struct VariableSubsSlice {
|
||||
slice: SubsSlice<Variable>,
|
||||
pub slice: SubsSlice<Variable>,
|
||||
}
|
||||
|
||||
impl VariableSubsSlice {
|
||||
|
@ -1849,7 +1849,7 @@ impl RecordFields {
|
|||
}
|
||||
}
|
||||
|
||||
fn variables(&self) -> VariableSubsSlice {
|
||||
pub const fn variables(&self) -> VariableSubsSlice {
|
||||
let slice = SubsSlice::new(self.variables_start, self.length);
|
||||
|
||||
VariableSubsSlice { slice }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue