Merge remote-tracking branch 'origin/trunk' into tag-union-imitate-rust

This commit is contained in:
Folkert 2021-11-07 15:29:55 +01:00
commit 0e1e3381f0
119 changed files with 5429 additions and 4593 deletions

View file

@ -1399,7 +1399,7 @@ fn build_rec_union_recursive_decrement<'a, 'ctx, 'env>(
) {
debug_assert_eq!(cases.len(), 1);
// in this case, don't switch, because the `else` branch below would try to read the (nonexistant) tag id
// in this case, don't switch, because the `else` branch below would try to read the (nonexistent) tag id
let (_, only_branch) = cases.pop().unwrap();
env.builder.build_unconditional_branch(only_branch);
} else {