Skip to content

Remove unnecessary indirection around hir::ConstArg - #164105

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
JonathanBrouwer:indirect-constarg
Oct 12, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
JonathanBrouwer:indirect-constarg

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Probably doesn't have measurable perf effect because ConstArg is not that common of a type (yet), but it's nicer this way regardless imo :)

@rustbot

rustbot commented Oct 10, 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 Oct 10, 2026
@rustbot

rustbot commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator

r? @mu001999

rustbot has assigned @mu001999.
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: ast_lowering, compiler
  • ast_lowering, compiler expanded to 77 candidates
  • Random selection from 17 candidates

@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 10, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Oct 10, 2026
Remove unnecessary indirection around `hir::ConstArg`
@rust-bors

rust-bors Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: db44544 (db4454453529bb925d18dff1b42fe89207b4d941)
Base parent: 92f3cfc (92f3cfc6887f3dd2257504d6f75c2d377c38ea89)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown

Finished benchmarking commit (db44544): comparison URL.

Overall result: no relevant changes - no action needed

Benchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up.

@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

Results (secondary -2.1%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
3.8% [2.5%, 5.1%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-13.7% [-13.7%, -13.7%] 1
All ❌✅ (primary) - - 0

Binary size

Results (primary 0.0%, secondary 0.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.0% [0.0%, 0.1%] 4
Regressions ❌
(secondary)
0.0% [0.0%, 0.1%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.0% [0.0%, 0.1%] 4

Bootstrap: 488.853s -> 490.569s (0.35%)
Artifact size: 406.48 MiB -> 406.62 MiB (0.04%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 10, 2026
@mu001999

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 672e1a1 has been approved by mu001999

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 12, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Oct 12, 2026
… r=mu001999

Remove unnecessary indirection around `hir::ConstArg`

Probably doesn't have measurable perf effect because `ConstArg` is not that common of a type (yet), but it's nicer this way regardless imo :)
rust-bors Bot pushed a commit that referenced this pull request Oct 12, 2026
Rollup of 5 pull requests

Successful merges:

 - #163981 (New solver opts for `diesel`)
 - #164088 (const-check: clarify when and how we can rely on non-UB assumptions)
 - #164105 (Remove unnecessary indirection around `hir::ConstArg`)
 - #164181 (Tweak output on unused/unaccessible local macro)
 - #164186 (Update actions/upload-artifact action to v7.0.2)
rust-bors Bot pushed a commit that referenced this pull request Oct 12, 2026
Rollup of 5 pull requests

Successful merges:

 - #163981 (New solver opts for `diesel`)
 - #164088 (const-check: clarify when and how we can rely on non-UB assumptions)
 - #164105 (Remove unnecessary indirection around `hir::ConstArg`)
 - #164181 (Tweak output on unused/unaccessible local macro)
 - #164186 (Update actions/upload-artifact action to v7.0.2)
@rust-bors
rust-bors Bot merged commit 0b41aed into rust-lang:main Oct 12, 2026
15 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Oct 12, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 12, 2026
Rollup merge of #164105 - JonathanBrouwer:indirect-constarg, r=mu001999

Remove unnecessary indirection around `hir::ConstArg`

Probably doesn't have measurable perf effect because `ConstArg` is not that common of a type (yet), but it's nicer this way regardless imo :)
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