Skip to content

Commit

Permalink
Rollup merge of #108750 - compiler-errors:aaaaaaaa, r=lcnr
Browse files Browse the repository at this point in the history
Fix `ObligationCtxt::sub`

typo it seems
  • Loading branch information
matthiaskrgr authored Mar 6, 2023
2 parents 9c99a4c + 1f92c61 commit 6240b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_trait_selection/src/traits/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 6240b54

Please sign in to comment.