Skip to content

feat(mem_replace_with_default): also emit inside macros#17191

Merged
dswij merged 1 commit into
rust-lang:masterfrom
ada4a:mem_replace_with_default-in-macros
Jun 9, 2026
Merged

feat(mem_replace_with_default): also emit inside macros#17191
dswij merged 1 commit into
rust-lang:masterfrom
ada4a:mem_replace_with_default-in-macros

Conversation

@ada4a

@ada4a ada4a commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

This was originally not done because emitting suggestions in macros used to not work well.1 That's fortunately no longer the case.

This allows folding mem_replace_with_default_macro into the other test files -- both the regular and the no-std one.

changelog: [mem_replace_with_default]: also emit inside macros

Footnotes

  1. https://github.com/rust-lang/rust-clippy/pull/4881#discussion_r361164219

@ada4a

ada4a commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

@rustbot blocked on #17190

@rustbot rustbot added the S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work label Jun 8, 2026
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

No changes for b8c36b0

@ada4a ada4a force-pushed the mem_replace_with_default-in-macros branch 6 times, most recently from 6b17a21 to 75f3e2d Compare June 9, 2026 10:15
This was originally not done because emitting suggestions in macros used
to not work well.[^1] That's fortunately no longer the case.

This allows folding `mem_replace_with_default_macro` into the regular test files --
both the std and the no-std one.

[^1]: rust-lang#4881 (comment)
@ada4a ada4a force-pushed the mem_replace_with_default-in-macros branch from 75f3e2d to b8c36b0 Compare June 9, 2026 13:36
@ada4a

ada4a commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties and removed S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work labels Jun 9, 2026
@ada4a ada4a marked this pull request as ready for review June 9, 2026 13:37
@rustbot

rustbot commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

r? @dswij

rustbot has assigned @dswij.
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: 8 candidates
  • 8 candidates expanded to 8 candidates
  • Random selection from Jarcho, dswij, llogiq, samueltardieu

@ada4a

ada4a commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

cc @samueltardieu as you've looked at the previous PR

@dswij dswij added this pull request to the merge queue Jun 9, 2026
Merged via the queue into rust-lang:master with commit 0889c92 Jun 9, 2026
13 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 9, 2026
@ada4a ada4a deleted the mem_replace_with_default-in-macros branch June 9, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants