Skip to content
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

Skip use_self inside macro expansions of a impl Self block #13128

Merged
merged 6 commits into from
Feb 6, 2025

Conversation

tesuji
Copy link
Contributor

@tesuji tesuji commented Jul 19, 2024

changelog: [use_self] Skip if inside macro expansions of a impl Self block
Fixes #13092.
r? Alexendoo

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jul 19, 2024
@tesuji tesuji force-pushed the fix_thread-local_use_self branch 5 times, most recently from d02153a to 5d81633 Compare July 21, 2024 06:16
clippy_lints/src/use_self.rs Outdated Show resolved Hide resolved
clippy_lints/src/use_self.rs Outdated Show resolved Hide resolved
@tesuji tesuji force-pushed the fix_thread-local_use_self branch from 5d81633 to 135eaf1 Compare July 24, 2024 21:05
@tesuji tesuji changed the title Skip use_self inside thread_local! of a impl Self block Skip use_self inside macro expansions of a impl Self block Jul 24, 2024
@tesuji tesuji force-pushed the fix_thread-local_use_self branch from 135eaf1 to d3d894d Compare July 24, 2024 21:16
@tesuji
Copy link
Contributor Author

tesuji commented Jul 24, 2024

Thank you for your insightful reviews!
Should be ready for another look.

clippy_lints/src/use_self.rs Outdated Show resolved Hide resolved
clippy_lints/src/use_self.rs Outdated Show resolved Hide resolved
@tesuji tesuji force-pushed the fix_thread-local_use_self branch 3 times, most recently from 16f5ed8 to 451c584 Compare September 6, 2024 18:16
@bors
Copy link
Contributor

bors commented Oct 18, 2024

☔ The latest upstream changes (presumably #13561) made this pull request unmergeable. Please resolve the merge conflicts.

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! Looks good to go with a rebase

@Alexendoo Alexendoo added S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Feb 1, 2025
@tesuji tesuji force-pushed the fix_thread-local_use_self branch from 451c584 to 3cf2a7d Compare February 6, 2025 07:04
@tesuji tesuji force-pushed the fix_thread-local_use_self branch from 3cf2a7d to 94f33cd Compare February 6, 2025 07:33
@tesuji tesuji force-pushed the fix_thread-local_use_self branch from 94f33cd to 9ea2b65 Compare February 6, 2025 07:35
@tesuji

This comment was marked as resolved.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties and removed S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) labels Feb 6, 2025
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.

Thank you!

@Alexendoo Alexendoo added this pull request to the merge queue Feb 6, 2025
Merged via the queue into rust-lang:master with commit 20b2461 Feb 6, 2025
11 checks passed
@tesuji tesuji deleted the fix_thread-local_use_self branch February 7, 2025 04:00
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.

use_self false positive on outer items
4 participants