Skip to content

Do not lint macro generated codes #14976

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

donkomura
Copy link
Contributor

Fixes #14958

disallowed_names was used to lint code generated by macros. This behavior can confuse programmers who did not write the macro themselves. This change suppresses lints for code originating from macros, including external ones.

changelog: [disallowed_names] do not lint macro generated codes

@donkomura donkomura marked this pull request as ready for review June 4, 2025 15:25
@rustbot
Copy link
Collaborator

rustbot commented Jun 4, 2025

r? @Alexendoo

rustbot has assigned @Alexendoo.
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

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 4, 2025
@rustbot

This comment has been minimized.

`disallowed_names` was used to lint code generated by macros.
This behavior can confuse programmers who did not write the macro
themselves. This change suppresses lints for code originating from
macros, including external ones.

changelog: [`disallowed_names`] do not lint macro generated codes
@donkomura donkomura force-pushed the disallowed_names_do_not_lint_proc_macros branch from bb8c0d5 to c9a97e1 Compare June 4, 2025 15:44
Copy link
Member

@Alexendoo Alexendoo left a comment

Choose a reason for hiding this comment

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

Thanks!

@Alexendoo Alexendoo added this pull request to the merge queue Jun 5, 2025
Merged via the queue into rust-lang:master with commit f8a3929 Jun 5, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

disallowed_names triggers within external macro generated code
3 participants