Skip to content

Remove more BuiltinLintDiag variants - part 4 - #154376

Merged
rust-bors[bot] merged 4 commits into
rust-lang:mainfrom
GuillaumeGomez:migrate-diag
Apr 4, 2026
Merged

Remove more BuiltinLintDiag variants - part 4#154376
rust-bors[bot] merged 4 commits into
rust-lang:mainfrom
GuillaumeGomez:migrate-diag

Conversation

@GuillaumeGomez

@GuillaumeGomezGuillaumeGomez commented Mar 25, 2026

Copy link
Copy Markdown
Member

View all comments

Part of #153099.

I wonder if there will be any impact on perf by doing this code all the time. Gonna check.

r? @JonathanBrouwer

@rustbotrustbot 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 Mar 25, 2026
@rustbot

Copy link
Copy Markdown
Collaborator

JonathanBrouwer is currently at their maximum review capacity.
They may take a while to respond.

@GuillaumeGomez

Copy link
Copy Markdown
MemberAuthor

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

rust-borsBot pushed a commit that referenced this pull request Mar 25, 2026
Remove more BuiltinLintDiag variants - part 4
@rustbotrustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 25, 2026

@JonathanBrouwerJonathanBrouwer left a comment

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.

r=me if perf doesn't regress

View changes since this review

@rust-bors

rust-borsBot commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 15fe654 (15fe654f48f70513a93a7c83747adc01baf1d6af, parent: 8a703520e80d87d4423c01f9d4fbc9e5f6533a02)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (15fe654): comparison URL.

Overall result: ❌ regressions - please read the text below

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @rustbot label: +perf-regression-triaged. If not, please fix the regressions and do another perf run. If its results are neutral or positive, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
2.0%[0.5%, 3.3%]13
Improvements ✅
(primary)
--0
Improvements ✅
(secondary)
--0
All ❌✅ (primary)--0

Max RSS (memory usage)

Results (primary -2.4%, secondary 2.2%)

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

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
4.5%[1.3%, 6.8%]6
Improvements ✅
(primary)
-2.4%[-2.4%, -2.4%]2
Improvements ✅
(secondary)
-4.8%[-5.1%, -4.4%]2
All ❌✅ (primary)-2.4%[-2.4%, -2.4%]2

Cycles

Results (primary 2.8%, secondary 5.1%)

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

meanrangecount
Regressions ❌
(primary)
2.8%[2.8%, 2.8%]1
Regressions ❌
(secondary)
5.1%[2.5%, 7.7%]2
Improvements ✅
(primary)
--0
Improvements ✅
(secondary)
--0
All ❌✅ (primary)2.8%[2.8%, 2.8%]1

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 482.838s -> 482.192s (-0.13%)
Artifact size: 394.91 MiB -> 394.90 MiB (-0.00%)

@rustbotrustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Mar 25, 2026
@GuillaumeGomez

Copy link
Copy Markdown
MemberAuthor

Seems like we're forced to handle the computation only on need, so changed DecorateDiagCompat::Dynamic to make it provide a Session when needed. Let's see if perf is back to normal!

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

rust-borsBot pushed a commit that referenced this pull request Mar 25, 2026
Remove more BuiltinLintDiag variants - part 4
@rustbotrustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 25, 2026
@rust-bors

rust-borsBot commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 710c3a7 (710c3a78cc2b99a56947b72d4ff0e45a5e37ad7b, parent: 212ef7770dfad656782207fda799bdae28fc5b7b)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (710c3a7): comparison URL.

Overall result: ❌ regressions - please read the text below

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @rustbot label: +perf-regression-triaged. If not, please fix the regressions and do another perf run. If its results are neutral or positive, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
0.2%[0.1%, 0.4%]12
Improvements ✅
(primary)
--0
Improvements ✅
(secondary)
--0
All ❌✅ (primary)--0

Max RSS (memory usage)

Results (secondary -1.8%)

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

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
3.0%[2.6%, 3.3%]2
Improvements ✅
(primary)
--0
Improvements ✅
(secondary)
-5.0%[-6.9%, -2.5%]3
All ❌✅ (primary)--0

Cycles

Results (secondary 5.3%)

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

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
5.3%[2.2%, 9.4%]3
Improvements ✅
(primary)
--0
Improvements ✅
(secondary)
--0
All ❌✅ (primary)--0

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 484.064s -> 483.536s (-0.11%)
Artifact size: 396.84 MiB -> 394.94 MiB (-0.48%)

@rustbotrustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 26, 2026
@rust-bors

This comment has been minimized.

@rustbot

This comment has been minimized.

@GuillaumeGomez

Copy link
Copy Markdown
MemberAuthor

Perf regression is smaller now. Good enough @JonathanBrouwer ?

@JonathanBrouwer

Copy link
Copy Markdown
Member

@bors r+ rollup=iffy
Rollup=iffy because of the small performance effect, tho should be easy to isolate in a rollup since it's one specific test

@rust-bors

rust-borsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 9dc438e has been approved by JonathanBrouwer

It is now in the queue for this repository.

@rust-borsrust-borsBot 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 Apr 3, 2026
@rust-borsrust-borsBot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Apr 3, 2026
@rust-bors

This comment has been minimized.

@rust-borsrust-borsBot removed the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Apr 3, 2026
@rustbot

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@GuillaumeGomez

Copy link
Copy Markdown
MemberAuthor

@bors r=JonathanBrouwer rollup=iffy

@rust-bors

rust-borsBot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

📌 Commit df848e7 has been approved by JonathanBrouwer

It is now in the queue for this repository.

@rust-borsrust-borsBot 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 3, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Apr 4, 2026
…athanBrouwer
Remove more BuiltinLintDiag variants - part 4
Part of rust-lang#153099.
I wonder if there will be any impact on perf by doing this code all the time. Gonna check.
r? @JonathanBrouwer
@jhprattjhpratt mentioned this pull request Apr 4, 2026
rust-borsBot pushed a commit that referenced this pull request Apr 4, 2026
Rollup of 10 pull requests
Successful merges:
- #154376 (Remove more BuiltinLintDiag variants - part 4)
- #127534 (feat(core): impl Step for NonZero<u*>)
- #153286 (various fixes for scalable vectors)
- #153592 (Add `min_adt_const_params` gate)
- #154675 (Improve shadowed private field diagnostics)
- #154703 (Fix trailing comma in lifetime suggestion for empty angle brackets)
- #154653 (Remove rustc_on_unimplemented's append_const_msg)
- #154743 (Remove an unused `StableHash` impl.)
- #154752 (Add comment to borrow-checker)
- #154764 (Add tests for three ICEs that have already been fixed)
rust-borsBot pushed a commit that referenced this pull request Apr 4, 2026
Rollup of 5 pull requests
Successful merges:
- #154376 (Remove more BuiltinLintDiag variants - part 4)
- #154731 (llvm: Fix array ABI test to not check equality implementation)
- #127534 (feat(core): impl Step for NonZero<u*>)
- #154703 (Fix trailing comma in lifetime suggestion for empty angle brackets)
- #154776 (Fix ICE in read_discriminant for enums with non-contiguous discriminants)
@rust-bors
rust-borsBot merged commit 643f45e into rust-lang:mainApr 4, 2026
11 checks passed
@rustbotrustbot added this to the 1.96.0 milestone Apr 4, 2026
rust-timer added a commit that referenced this pull request Apr 4, 2026
Rollup merge of #154376 - GuillaumeGomez:migrate-diag, r=JonathanBrouwer
Remove more BuiltinLintDiag variants - part 4
Part of #153099.
I wonder if there will be any impact on perf by doing this code all the time. Gonna check.
r? @JonathanBrouwer
@GuillaumeGomez
GuillaumeGomez deleted the migrate-diag branch April 4, 2026 18:09
@Mark-Simulacrum

Copy link
Copy Markdown
Member

Regression in rollup (#154802 (comment)) almost certainly due to this PR. Marking as triaged as I don't think we need to dig further at this time.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf-regressionPerformance regression.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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.

5 participants

@GuillaumeGomez@rustbot@rust-timer@JonathanBrouwer@Mark-Simulacrum