Rollup merge of #108750 - compiler-errors:aaaaaaaa, r=lcnr

Fix `ObligationCtxt::sub`

typo it seems
This commit is contained in:
Matthias Krüger 2023-03-06 16:41:57 +01:00 committed by GitHub
commit 6240b54966
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,7 @@ impl<'a, 'tcx> ObligationCtxt<'a, 'tcx> {
self.infcx
.at(cause, param_env)
.define_opaque_types(true)
.sup(expected, actual)
.sub(expected, actual)
.map(|infer_ok| self.register_infer_ok_obligations(infer_ok))
}