mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Make and use a newtype for OptVariable
This commit is contained in:
parent
5cb9a4ba2d
commit
784b22a28e
3 changed files with 42 additions and 18 deletions
|
@ -2,7 +2,7 @@ use crate::can::ident::Lowercase;
|
|||
use crate::can::symbol::Symbol;
|
||||
use crate::collections::ImMap;
|
||||
use crate::region::Located;
|
||||
use crate::subs::{Content, Descriptor, FlatType, Mark, Rank, Subs, Variable};
|
||||
use crate::subs::{Content, Descriptor, FlatType, Mark, OptVariable, Rank, Subs, Variable};
|
||||
use crate::types::Constraint::{self, *};
|
||||
use crate::types::Problem;
|
||||
use crate::types::Type::{self, *};
|
||||
|
@ -662,7 +662,7 @@ fn register(subs: &mut Subs, rank: Rank, pools: &mut Pools, content: Content) ->
|
|||
content,
|
||||
rank,
|
||||
mark: Mark::NONE,
|
||||
copy: Variable::NULL,
|
||||
copy: OptVariable::NONE,
|
||||
});
|
||||
|
||||
pools.get_mut(rank).push(var);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue