Pass 1 of polymorphic specialization of defs

This commit is contained in:
Ayaz Hafiz 2022-04-25 18:59:39 -04:00
parent 293bc6b15b
commit 7182180622
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
5 changed files with 309 additions and 257 deletions

View file

@ -440,7 +440,7 @@ impl Env {
const DEFAULT_POOLS: usize = 8;
#[derive(Clone, Debug)]
struct Pools(Vec<Vec<Variable>>);
pub struct Pools(Vec<Vec<Variable>>);
impl Default for Pools {
fn default() -> Self {
@ -2868,7 +2868,7 @@ fn instantiate_rigids_help(subs: &mut Subs, max_rank: Rank, initial: Variable) {
}
}
fn deep_copy_var_in(
pub fn deep_copy_var_in(
subs: &mut Subs,
rank: Rank,
pools: &mut Pools,