Skip to content

Remove the 'sup' method from 'At' and migrate uses to 'sup_raw' - #164244

Merged
rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
fallible-algebra:at-removal/remove-sup
Oct 14, 2026
Merged

rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
fallible-algebra:at-removal/remove-sup

Conversation

@fallible-algebra

@fallible-algebra fallible-algebra commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Continuation of #163978

@rustbot

rustbot commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in engine.rs, potentially modifying the public API of ObligationCtxt.

cc @lcnr

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 13, 2026
@rustbot

rustbot commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

r? @khyperia

rustbot has assigned @khyperia.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 77 candidates
  • Random selection from 18 candidates

@fallible-algebra

Copy link
Copy Markdown
Member Author

r? lcnr

@rustbot rustbot assigned lcnr and unassigned khyperia Oct 13, 2026
);
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)

@lcnr lcnr Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

want to change this to use demand_suptype_diag instead?

View changes since the review

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to leave this instance of sup_raw here for now.

Comment thread compiler/rustc_hir_typeck/src/callee.rs
Comment thread compiler/rustc_hir_typeck/src/expr.rs Outdated
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(

@lcnr lcnr Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lcnr lcnr left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some places which shouldn't be using sup_raw, then r=me

View changes since this review

Co-authored-by: lcnr <rust@lcnr.de>
@lcnr

lcnr commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 13, 2026
@fallible-algebra

Copy link
Copy Markdown
Member Author

@bors r=lcnr

@rust-bors

rust-bors Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

@fallible-algebra: 🔑 Insufficient privileges: not in review users

@fallible-algebra

Copy link
Copy Markdown
Member Author

@rustbot label -S-waiting-on-author +S-waiting-on-review

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 13, 2026
@lcnr

lcnr commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@rust-bors

rust-bors Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

📌 Commit ae85a2a has been approved by lcnr

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 13, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Oct 13, 2026
…-sup, r=lcnr

Remove the 'sup' method from 'At' and migrate uses to 'sup_raw'

Continuation of rust-lang#163978
rust-bors Bot pushed a commit that referenced this pull request Oct 13, 2026
…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)
@rust-bors
rust-bors Bot merged commit 9b79cc7 into rust-lang:main Oct 14, 2026
14 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Oct 14, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 14, 2026
Rollup merge of #164244 - fallible-algebra:at-removal/remove-sup, r=lcnr

Remove the 'sup' method from 'At' and migrate uses to 'sup_raw'

Continuation of #163978
wasd243 pushed a commit to wasd243/rust-clippy that referenced this pull request Oct 15, 2026
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants