Skip to content

Allow cast lints in macros - #12631

Merged
bors merged 1 commit into
rust-lang:masterfrom
franciscoBSalgueiro:11738
Apr 4, 2024
Merged

bors merged 1 commit into
rust-lang:masterfrom
franciscoBSalgueiro:11738

Conversation

@franciscoBSalgueiro

Copy link
Copy Markdown
Contributor

closes: #11738

Removed the from_expansion guard clause for cast lints, so that these warnings can be generated for internal macros.

changelog: allow cast lints in macros

Removed the `from_expansion` guard clause for cast lints, so that these warnings can be generated for internal macros.
@rustbot

rustbot commented Apr 4, 2024

Copy link
Copy Markdown
Collaborator

r? @blyxyas

rustbot has assigned @blyxyas.
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 Apr 4, 2024

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

LGTM, thanks! ❤️
This would change the outcome so that no lints were processed on proc macros. But hey, I don't think that we want to run cast lints on proc macros anyways haha =^w^=

@blyxyas

blyxyas commented Apr 4, 2024

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Apr 4, 2024

Copy link
Copy Markdown
Contributor

📌 Commit ac225a3 has been approved by blyxyas

It is now in the queue for this repository.

@bors

bors commented Apr 4, 2024

Copy link
Copy Markdown
Contributor

⌛ Testing commit ac225a3 with merge 08dac85...

@bors

bors commented Apr 4, 2024

Copy link
Copy Markdown
Contributor

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: blyxyas
Pushing 08dac85 to master...

@bors
bors merged commit 08dac85 into rust-lang:master Apr 4, 2024
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.

cast-related lint should warn internal macros

4 participants