Repository navigation
Remove the 'sup' method from 'At' and migrate uses to 'sup_raw' - #164244
fallible-algebra wants to merge 3 commits into
Conversation
|
Some changes occurred in engine.rs, potentially modifying the public API of cc @lcnr |
|
r? @khyperia rustbot has assigned @khyperia. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
r? lcnr |
| ); | ||
| let cause = self.cause(self.self_expr.span, ObligationCauseCode::Misc); | ||
| match self.at(&cause, self.param_env).sup(DefineOpaqueTypes::Yes, method_self_ty, self_ty) { | ||
| match self.sup_raw(&cause, self.param_env, DefineOpaqueTypes::Yes, method_self_ty, self_ty) |
There was a problem hiding this comment.
want to change this to use demand_suptype_diag instead?
There was a problem hiding this comment.
I'm not quite sure how to integrate this here, each way I try to brings up different failures in the test suite (wrt arbitrary self for the most part).
| let target_ty = self.field_ty(base_expr.span, f, args); | ||
| let cause = self.misc(base_expr.span); | ||
| match self.at(&cause, self.param_env).sup( | ||
| match self.sup_raw( |
There was a problem hiding this comment.
this can use self.demand_subtpe_diag and then weaken the diagnostics via https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/diagnostic/struct.Diag.html#method.delay_as_bug
Co-authored-by: lcnr <rust@lcnr.de>
|
@rustbot author |
Continuation of #163978