-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
in which we decline to lint single-use lifetimes in derive
d impls
#61824
Conversation
43e65c0
to
ae1056e
Compare
(Pushing the branch directly to rust-lang/rust rather than my "fork" was a mistake, but probably an inconsequential one?) |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Yep; we have branch protection on the important branches; please just cleanup after you're done. 😃 |
@scottmcm suggested on Discord that we should change the macro expansion of the built-in derives to use |
ae1056e
to
17653dd
Compare
(fixed tidy) |
Derives are a special case of "macros from other crates", which normally suppress lints. |
The problem is (as explained by @estebank) that the derive doesn't mark the spans of idents it's using as coming from an expansion. |
@bors r+ (feel free to open an issue about changing the deriving output) |
📌 Commit 17653dd has been approved by |
🌲 The tree is currently closed for pull requests below priority 500, this pull request will be tested once the tree is reopened |
in which we decline to lint single-use lifetimes in `derive`d impls Resolves rust-lang#53738. r? @eddyb
in which we decline to lint single-use lifetimes in `derive`d impls Resolves rust-lang#53738. r? @eddyb
in which we decline to lint single-use lifetimes in `derive`d impls Resolves rust-lang#53738. r? @eddyb
in which we decline to lint single-use lifetimes in `derive`d impls Resolves rust-lang#53738. r? @eddyb
Rollup of 6 pull requests Successful merges: - #61785 (note some safety concerns of raw-ptr-to-ref casts) - #61805 (typeck: Fix ICE for blocks in repeat expr count.) - #61813 (Remove some unnecessary symbol interner ops) - #61824 (in which we decline to lint single-use lifetimes in `derive`d impls) - #61844 (Change `...` to `..=` where applicable) - #61854 (Minor cosmetic improvements to accompany PR 61825) Failed merges: r? @ghost
Resolves #53738.
r? @eddyb