Move solve and uniq tests into other crates

This commit is contained in:
Richard Feldman 2020-03-06 02:39:40 -05:00
parent d8cf402528
commit a2f5f6f9fb
21 changed files with 910 additions and 47 deletions

View file

@ -613,7 +613,7 @@ fn check_for_infinite_type(
) {
let var = loc_var.value;
let is_uniqueness_infer = match subs.get(var).content {
let is_uniq_infer = match subs.get(var).content {
Content::Alias(Symbol::ATTR_ATTR, _, _) => true,
_ => false,
};
@ -625,7 +625,7 @@ fn check_for_infinite_type(
// try to make a tag union recursive, see if that helps
match content {
Content::Structure(FlatType::TagUnion(tags, ext_var)) => {
if !is_uniqueness_infer {
if !is_uniq_infer {
let rec_var = subs.fresh_unnamed_flex_var();
subs.set_rank(rec_var, description.rank);