Apply fallback to scalar type variables before final obligation resolution

This commit is contained in:
Ryo Yoshida 2023-01-05 21:31:10 +09:00
parent b183612610
commit d01630c8f3
No known key found for this signature in database
GPG key ID: E25698A930586171
3 changed files with 112 additions and 0 deletions

View file

@ -512,6 +512,8 @@ impl<'a> InferenceContext<'a> {
fn resolve_all(self) -> InferenceResult {
let InferenceContext { mut table, mut result, .. } = self;
table.fallback_if_possible();
// FIXME resolve obligations as well (use Guidance if necessary)
table.resolve_obligations_as_possible();