Skip to content

change target modifier errors to use the diagnostic APIs instead of structs - #165725

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
RalfJung:target-modifier-error
Nov 18, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
RalfJung:target-modifier-error

Conversation

@RalfJung

@RalfJung RalfJung commented Nov 9, 2026

Copy link
Copy Markdown
Member

This deduplicates a bunch of strings that were previously duplicated across three strict types.

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

rustbot commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

r? @mati865

rustbot has assigned @mati865.
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 79 candidates
  • Random selection from 21 candidates

@rust-bors

This comment has been minimized.

@RalfJung
RalfJung force-pushed the target-modifier-error branch from 5d80a42 to 8c9a872 Compare November 16, 2026 07:04
@rustbot

rustbot commented Nov 16, 2026

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.

@rust-log-analyzer

This comment has been minimized.

@RalfJung
RalfJung force-pushed the target-modifier-error branch from 8c9a872 to 6fc7f12 Compare November 16, 2026 10:11

@mati865 mati865 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.

Sorry for the late review.
@bors r+ rollup

View changes since this review

@rust-bors

rust-bors Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 6fc7f12 has been approved by mati865

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 Nov 17, 2026
Zalathar added a commit to Zalathar/rust that referenced this pull request Nov 18, 2026
…mati865

change target modifier errors to use the diagnostic APIs instead of structs

This deduplicates a bunch of strings that were previously duplicated across three strict types.
rust-bors Bot pushed a commit that referenced this pull request Nov 18, 2026
Rollup of 16 pull requests

Successful merges:

 - #166037 (reflection: enable tool attributes to be reflectable)
 - #165008 (Support `NonNull` pointers as `asm!` input operands)
 - #165465 (Use `emit_ptr_va_arg` for `va_arg` on M68k)
 - #166042 (Fix out of scope method suggestion)
 - #166090 (bootstrap: rebuild LLD when LLVM changes)
 - #159795 (Introduce `-Z pack-coroutine-layout` flag)
 - #163556 (arm: only f32 and f64 are valid HFA bases)
 - #164665 (Add Reference annotations for inline assembly)
 - #165725 (change target modifier errors to use the diagnostic APIs instead of structs)
 - #165912 (simplify `fluent_value_from_str_list_sep_by_and`)
 - #165982 (compiler: Stop special-casing `report_in_external_macro` in `declare_tool_lint!`)
 - #166006 (Detect method shadowed by another when accessing a field or calling method that isn't found in method chain)
 - #166083 (Record seeds in the appropriate order)
 - #166104 (abi/bad-custom.rs: make test run on all editions)
 - #166124 (platform-support: add amaanq as powerpc64-unknown-linux-gnuelfv2 maintainer)
 - #166127 (Add tests from failed attempt at implementing `hir::Param` move)

Failed merges:

 - #165094 (reflection: doc attributes from adts, fields, and variants)
rust-bors Bot pushed a commit that referenced this pull request Nov 18, 2026
…uwer

Rollup of 15 pull requests

Successful merges:

 - #166037 (reflection: enable tool attributes to be reflectable)
 - #165465 (Use `emit_ptr_va_arg` for `va_arg` on M68k)
 - #166042 (Fix out of scope method suggestion)
 - #166090 (bootstrap: rebuild LLD when LLVM changes)
 - #159795 (Introduce `-Z pack-coroutine-layout` flag)
 - #163556 (arm: only f32 and f64 are valid HFA bases)
 - #164665 (Add Reference annotations for inline assembly)
 - #165725 (change target modifier errors to use the diagnostic APIs instead of structs)
 - #165912 (simplify `fluent_value_from_str_list_sep_by_and`)
 - #165982 (compiler: Stop special-casing `report_in_external_macro` in `declare_tool_lint!`)
 - #166006 (Detect method shadowed by another when accessing a field or calling method that isn't found in method chain)
 - #166083 (Record seeds in the appropriate order)
 - #166104 (abi/bad-custom.rs: make test run on all editions)
 - #166124 (platform-support: add amaanq as powerpc64-unknown-linux-gnuelfv2 maintainer)
 - #166127 (Add tests from failed attempt at implementing `hir::Param` move)

Failed merges:

 - #165094 (reflection: doc attributes from adts, fields, and variants)
rust-bors Bot pushed a commit that referenced this pull request Nov 18, 2026
Rollup merge of #165725 - RalfJung:target-modifier-error, r=mati865

change target modifier errors to use the diagnostic APIs instead of structs

This deduplicates a bunch of strings that were previously duplicated across three strict types.
@rust-bors
rust-bors Bot merged commit 820b200 into rust-lang:main Nov 18, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 18, 2026
@RalfJung
RalfJung deleted the target-modifier-error branch November 19, 2026 06:54
yermakoffivan pushed a commit to yermakoffivan/rust-clippy that referenced this pull request Nov 20, 2026
…uwer

Rollup of 15 pull requests

Successful merges:

 - rust-lang/rust#166037 (reflection: enable tool attributes to be reflectable)
 - rust-lang/rust#165465 (Use `emit_ptr_va_arg` for `va_arg` on M68k)
 - rust-lang/rust#166042 (Fix out of scope method suggestion)
 - rust-lang/rust#166090 (bootstrap: rebuild LLD when LLVM changes)
 - rust-lang/rust#159795 (Introduce `-Z pack-coroutine-layout` flag)
 - rust-lang/rust#163556 (arm: only f32 and f64 are valid HFA bases)
 - rust-lang/rust#164665 (Add Reference annotations for inline assembly)
 - rust-lang/rust#165725 (change target modifier errors to use the diagnostic APIs instead of structs)
 - rust-lang/rust#165912 (simplify `fluent_value_from_str_list_sep_by_and`)
 - rust-lang/rust#165982 (compiler: Stop special-casing `report_in_external_macro` in `declare_tool_lint!`)
 - rust-lang/rust#166006 (Detect method shadowed by another when accessing a field or calling method that isn't found in method chain)
 - rust-lang/rust#166083 (Record seeds in the appropriate order)
 - rust-lang/rust#166104 (abi/bad-custom.rs: make test run on all editions)
 - rust-lang/rust#166124 (platform-support: add amaanq as powerpc64-unknown-linux-gnuelfv2 maintainer)
 - rust-lang/rust#166127 (Add tests from failed attempt at implementing `hir::Param` move)

Failed merges:

 - rust-lang/rust#165094 (reflection: doc attributes from adts, fields, and variants)
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