Derive tag union encoders

This commit is contained in:
Ayaz Hafiz 2022-07-12 16:01:31 -04:00
parent 9aa3cb8d33
commit 1cf1e114be
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
5 changed files with 346 additions and 5 deletions

View file

@ -1380,10 +1380,9 @@ fn solve(
subs.commit_snapshot(snapshot);
introduce(subs, rank, pools, &vars);
if !must_implement_ability.is_empty() {
internal_error!("Didn't expect ability vars to land here");
}
deferred_obligations
.add(must_implement_ability, AbilityImplError::IncompleteAbility);
deferred_uls_to_resolve.union(lambda_sets_to_specialize);
// Case 1: unify error types, but don't check exhaustiveness.