Repository navigation
Remove the 'sup' method from 'At' and migrate uses to 'sup_raw' - #164244
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).
There was a problem hiding this comment.
Going to leave this instance of sup_raw here for now.
| 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 |
|
@bors r=lcnr |
|
@fallible-algebra: 🔑 Insufficient privileges: not in review users |
|
@rustbot label -S-waiting-on-author +S-waiting-on-review |
|
@bors r+ rollup |
…-sup, r=lcnr Remove the 'sup' method from 'At' and migrate uses to 'sup_raw' Continuation of rust-lang#163978
…uwer Rollup of 12 pull requests Successful merges: - #164040 (move `BoundVarReplacer` into rustc_type_ir) - #162934 (bootstrap: Let test-float-parse follow --target) - #164269 (convert non-generic diagnostic attribute placeholders to snake_case) - #160050 (Fix a splat legacy demangling display bug) - #163383 (Provide context span pointing at trait/item when talking about assoc items) - #164023 (make `with_post_analysis_normalized` invalidate rigid aliases) - #164041 (Add regression test for dead-code with external trait impl) - #164166 (Ignore thread-related tests for UEFI) - #164229 (Update outdated `hir_attrs` doc) - #164244 (Remove the 'sup' method from 'At' and migrate uses to 'sup_raw') - #164257 (Add transmutability test to cover for superseded PR) - #164263 (Fix expected output for x86-64-sysv64-arg-ext.apple.stderr)
…uwer Rollup of 12 pull requests Successful merges: - rust-lang/rust#164040 (move `BoundVarReplacer` into rustc_type_ir) - rust-lang/rust#162934 (bootstrap: Let test-float-parse follow --target) - rust-lang/rust#164269 (convert non-generic diagnostic attribute placeholders to snake_case) - rust-lang/rust#160050 (Fix a splat legacy demangling display bug) - rust-lang/rust#163383 (Provide context span pointing at trait/item when talking about assoc items) - rust-lang/rust#164023 (make `with_post_analysis_normalized` invalidate rigid aliases) - rust-lang/rust#164041 (Add regression test for dead-code with external trait impl) - rust-lang/rust#164166 (Ignore thread-related tests for UEFI) - rust-lang/rust#164229 (Update outdated `hir_attrs` doc) - rust-lang/rust#164244 (Remove the 'sup' method from 'At' and migrate uses to 'sup_raw') - rust-lang/rust#164257 (Add transmutability test to cover for superseded PR) - rust-lang/rust#164263 (Fix expected output for x86-64-sysv64-arg-ext.apple.stderr)
Continuation of #163978