Merge remote-tracking branch 'origin/trunk' into use-fewer-variables

This commit is contained in:
Folkert 2020-03-07 00:53:13 +01:00
commit 21bbfd3c94
88 changed files with 2532 additions and 2251 deletions

View file

@ -605,7 +605,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,
};
@ -617,7 +617,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);