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

Ignore needless_arbitrary_self_type clippy lint in generated code #278

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Sep 24, 2024

Closes #277.

    warning: the type of the `self` parameter does not need to be arbitrary
        --> tests/test.rs:1656:24
         |
    1656 |         async fn f(mut self: &Self) {
         |                        ^^^^^^^^^^^ help: consider to change this parameter to: `&'life0 self`
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_arbitrary_self_type
         = note: `#[warn(clippy::needless_arbitrary_self_type)]` on by default
@dtolnay dtolnay merged commit bfe8d61 into master Sep 24, 2024
17 checks passed
@dtolnay dtolnay deleted the arbself branch September 24, 2024 18:29
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.

Macro-generated false positive for clippy::needless_arbitrary_self_type
1 participant