diff options
| author | Michael Goulet <michael@errs.io> | 2023-03-04 20:57:30 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-03-04 20:57:34 +0000 |
| commit | 1f92c61e733482b08bed894c069a5f2ba38292da (patch) | |
| tree | 7fe0fb6eeaa95713de170ae16761c5f8d94c813c /compiler/rustc_trait_selection/src | |
| parent | 276b75a843af8822ffe4e395266d9445679a57a4 (diff) | |
| download | rust-1f92c61e733482b08bed894c069a5f2ba38292da.tar.gz rust-1f92c61e733482b08bed894c069a5f2ba38292da.zip | |
sub is not sup
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/engine.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/engine.rs b/compiler/rustc_trait_selection/src/traits/engine.rs index b20636174ee..62d5e50dbc5 100644 --- a/compiler/rustc_trait_selection/src/traits/engine.rs +++ b/compiler/rustc_trait_selection/src/traits/engine.rs @@ -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)) } |
