actually infer the size

This commit is contained in:
Folkert 2020-10-02 22:33:31 +02:00
parent c00cd2f415
commit e9f5c1a73c
8 changed files with 51 additions and 25 deletions

View file

@ -961,6 +961,7 @@ pub fn constrain_decls(
Vec::new(),
constrain_def(&env, def, constraint),
);
debug_assert!(format!("{:?}", &constraint).contains("SaveTheEnvironment"));
}
Declaration::DeclareRec(defs) => {
constraint = exists_with_aliases(
@ -968,6 +969,7 @@ pub fn constrain_decls(
Vec::new(),
constrain_recursive_defs(&env, defs, constraint),
);
debug_assert!(format!("{:?}", &constraint).contains("SaveTheEnvironment"));
}
Declaration::InvalidCycle(_, _) => {
// invalid cycles give a canonicalization error. we skip them here.
@ -976,6 +978,7 @@ pub fn constrain_decls(
}
}
debug_assert!(format!("{:?}", &constraint).contains("SaveTheEnvironment"));
constraint
}