Skip to content

Some minor cleanups around hir ty/pat/expr#157980

Open
oli-obk wants to merge 2 commits into
rust-lang:mainfrom
oli-obk:cleanups2
Open

Some minor cleanups around hir ty/pat/expr#157980
oli-obk wants to merge 2 commits into
rust-lang:mainfrom
oli-obk:cleanups2

Conversation

@oli-obk

@oli-obk oli-obk commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Just some avenues for deduplication that I noticed. Also makes sure we handle all three everywhere instead of just ty/expr like the diagnostic code previously did.

@rustbot

rustbot commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

HIR ty lowering was modified

cc @fmease

@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 Jun 16, 2026
@rustbot

rustbot commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

r? @folkertdev

rustbot has assigned @folkertdev.
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 73 candidates
  • Random selection from 20 candidates

Comment thread compiler/rustc_hir_typeck/src/lib.rs Outdated

@fmease fmease Jun 16, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

// `foo<N>()` in expression context, point at `foo`'s const parameter.

Could you update or remove this comment?

View changes since the review

@fmease

fmease commented Jun 16, 2026

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 215f428 has been approved by fmease

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 Jun 16, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 17, 2026
Some minor cleanups around hir ty/pat/expr

Just some avenues for deduplication that I noticed. Also makes sure we handle all three everywhere instead of just ty/expr like the diagnostic code previously did.
rust-bors Bot pushed a commit that referenced this pull request Jun 17, 2026
Rollup of 7 pull requests

Successful merges:

 - #157681 (Add instrument_fn attribute)
 - #149219 (Allow shortening lifetime in CoerceUnsized for &mut)
 - #157539 (Rename `RandomSource` -> `Rng`, `DefaultRandomSource` -> `SystemRng`)
 - #157980 (Some minor cleanups around hir ty/pat/expr)
 - #157988 (Fix incremental-finalize-fail proc macro test on AIX)
 - #157989 (run-make: handle AIX symbol cdylib export test)
 - #157998 (Add big disclaimer to the description of lint `explicit_outlives_requirements`)
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