Skip to content

Migration of LintDiagnostic - part 3#153051

Merged
rust-bors[bot] merged 10 commits intorust-lang:mainfrom
GuillaumeGomez:migrate-diag
Feb 25, 2026
Merged

Migration of LintDiagnostic - part 3#153051
rust-bors[bot] merged 10 commits intorust-lang:mainfrom
GuillaumeGomez:migrate-diag

Conversation

@GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Feb 24, 2026

View all comments

Follow-up of #152933 and of #153016.

More LintDiagnostic items being migrated to Diagnostic. Since there is no remaining emit_node_span_lint calls, I replaced the method with the code of emit_diag_node_span_lint.

r? @JonathanBrouwer

@rustbot
Copy link
Collaborator

rustbot commented Feb 24, 2026

Some changes occurred in compiler/rustc_passes/src/check_attr.rs

cc @jdonszelmann, @JonathanBrouwer

HIR ty lowering was modified

cc @fmease

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

Some changes occurred in exhaustiveness checking

cc @Nadrieril

Some changes occurred to the CTFE machinery

cc @RalfJung, @oli-obk, @lcnr

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) 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 Feb 24, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 24, 2026

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

@rust-log-analyzer

This comment has been minimized.

Copy link
Contributor

@JonathanBrouwer JonathanBrouwer left a comment

Choose a reason for hiding this comment

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

r=me if you don't need significant changes to fix CI

View changes since this review

@JonathanBrouwer
Copy link
Contributor

@bors r+ rollup

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 24, 2026

📌 Commit 0b31e99 has been approved by JonathanBrouwer

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. 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. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Feb 24, 2026
@rust-bors

This comment has been minimized.

@GuillaumeGomez
Copy link
Member Author

Rebased.

@rustbot
Copy link
Collaborator

rustbot commented Feb 24, 2026

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.

@JonathanBrouwer
Copy link
Contributor

@bors r+ rollup

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 24, 2026

📌 Commit 8fa1fca has been approved by JonathanBrouwer

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 24, 2026
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Feb 24, 2026
…athanBrouwer

Migration of `LintDiagnostic` - part 3

Follow-up of rust-lang#152933 and of rust-lang#153016.

More `LintDiagnostic` items being migrated to `Diagnostic`. Since there is no remaining `emit_node_span_lint` calls, I replaced the method with the code of `emit_diag_node_span_lint`.

r? @JonathanBrouwer
rust-bors bot pushed a commit that referenced this pull request Feb 25, 2026
Rollup of 8 pull requests

Successful merges:

 - #149169 (ptr::replace: make calls on ZST null ptr not UB)
 - #150562 (Fix doc link used in suggestion for pinning self)
 - #152679 (rustc_expand: improve diagnostics for non-repeatable metavars)
 - #153017 (Implement debuginfo for unsafe binder types)
 - #152868 (delete some very old trivial `Box` tests)
 - #152922 (rustc_public: Make fields that shouldn't be exposed visible only in `rustc_public`)
 - #153029 (Rename `rustc::pass_by_value` lint as `rustc::disallowed_pass_by_ref`.)
 - #153051 (Migration of `LintDiagnostic` - part 3)
rust-bors bot pushed a commit that referenced this pull request Feb 25, 2026
Rollup of 12 pull requests

Successful merges:

 - #149169 (ptr::replace: make calls on ZST null ptr not UB)
 - #150562 (Fix doc link used in suggestion for pinning self)
 - #152418 (`BTreeMap::merge` optimized)
 - #152679 (rustc_expand: improve diagnostics for non-repeatable metavars)
 - #152952 (mGCA: improve ogca diagnostic message )
 - #152977 (Fix relative path handling for --extern-html-root-url)
 - #153017 (Implement debuginfo for unsafe binder types)
 - #152868 (delete some very old trivial `Box` tests)
 - #152922 (rustc_public: Make fields that shouldn't be exposed visible only in `rustc_public`)
 - #153032 (Fix attribute parser and kind names.)
 - #153051 (Migration of `LintDiagnostic` - part 3)
 - #153060 (Give a better error when updating a submodule fails)
@rust-bors rust-bors bot merged commit 6929f76 into rust-lang:main Feb 25, 2026
11 checks passed
@rustbot rustbot added this to the 1.95.0 milestone Feb 25, 2026
rust-timer added a commit that referenced this pull request Feb 25, 2026
Rollup merge of #153051 - GuillaumeGomez:migrate-diag, r=JonathanBrouwer

Migration of `LintDiagnostic` - part 3

Follow-up of #152933 and of #153016.

More `LintDiagnostic` items being migrated to `Diagnostic`. Since there is no remaining `emit_node_span_lint` calls, I replaced the method with the code of `emit_diag_node_span_lint`.

r? @JonathanBrouwer
@GuillaumeGomez GuillaumeGomez deleted the migrate-diag branch February 25, 2026 09:54
@Kobzol
Copy link
Member

Kobzol commented Feb 25, 2026

@rust-timer build 86e0932

For #153074.

@rust-timer
Copy link
Collaborator

Missing artifact for sha 86e09325d662b75983bdc4be7f758cbcbb8509a3 (https://ci-artifacts.rust-lang.org/rustc-builds/86e09325d662b75983bdc4be7f758cbcbb8509a3/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz); not built yet, try again later.

@GuillaumeGomez
Copy link
Member Author

@rust-timer build 8fa1fca

@rust-timer
Copy link
Collaborator

Missing artifact for sha [8fa1fca](https://github.com/rust-lang/rust/pull/153051/commits/8fa1fca9f6e0f903ed4e90f5b131433b992d8495) (https://ci-artifacts.rust-lang.org/rustc-builds/[8fa1fca](https://github.com/rust-lang/rust/pull/153051/commits/8fa1fca9f6e0f903ed4e90f5b131433b992d8495)/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz); not built yet, try again later.

@GuillaumeGomez
Copy link
Member Author

@rust-timer build 8fa1fca

@rust-timer
Copy link
Collaborator

Missing artifact for sha 8fa1fca9f6e0f903ed4e90f5b131433b992d8495 (https://ci-artifacts.rust-lang.org/rustc-builds/8fa1fca9f6e0f903ed4e90f5b131433b992d8495/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz); not built yet, try again later.

@GuillaumeGomez
Copy link
Member Author

Hum ok.

@JonathanBrouwer
Copy link
Contributor

JonathanBrouwer commented Feb 25, 2026

@rust-timer build 86e0932

(86e0932 is the built commit from the rollup, which is the one we should be benchmarking)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (86e0932): comparison URL.

Overall result: no relevant changes - no action needed

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.

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

Instruction count

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

Max RSS (memory usage)

Results (secondary -5.4%)

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)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-5.4% [-7.2%, -4.4%] 3
All ❌✅ (primary) - - 0

Cycles

Results (primary -3.1%, secondary -3.3%)

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)
- - 0
Improvements ✅
(primary)
-3.1% [-3.1%, -3.1%] 1
Improvements ✅
(secondary)
-3.3% [-4.7%, -2.6%] 5
All ❌✅ (primary) -3.1% [-3.1%, -3.1%] 1

Binary size

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

Bootstrap: 482.035s -> 482.3s (0.05%)
Artifact size: 397.81 MiB -> 395.79 MiB (-0.51%)

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Feb 26, 2026
…athanBrouwer

Migration of `LintDiagnostic` - part 4

Follow-up of:
* rust-lang#152933
* rust-lang#153016
* rust-lang#153051

More `LintDiagnostic` items being migrated to `Diagnostic`. Since there is no remaining `emit_node_span_lint` calls, I replaced the method with the code of `emit_diag_node_span_lint`.

r? @JonathanBrouwer
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Feb 26, 2026
…athanBrouwer

Migration of `LintDiagnostic` - part 4

Follow-up of:
* rust-lang#152933
* rust-lang#153016
* rust-lang#153051

More `LintDiagnostic` items being migrated to `Diagnostic`. Since there is no remaining `emit_node_span_lint` calls, I replaced the method with the code of `emit_diag_node_span_lint`.

r? @JonathanBrouwer
rust-timer added a commit that referenced this pull request Feb 26, 2026
Rollup merge of #153091 - GuillaumeGomez:migrate-diag, r=JonathanBrouwer

Migration of `LintDiagnostic` - part 4

Follow-up of:
* #152933
* #153016
* #153051

More `LintDiagnostic` items being migrated to `Diagnostic`. Since there is no remaining `emit_node_span_lint` calls, I replaced the method with the code of `emit_diag_node_span_lint`.

r? @JonathanBrouwer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) 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.

6 participants