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

Turn off syn/clone-impls feature #273

Merged
merged 2 commits into from
Jul 7, 2024
Merged

Turn off syn/clone-impls feature #273

merged 2 commits into from
Jul 7, 2024

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jul 7, 2024

No description provided.

When syn/clone-impls isn't enabled, this type is not Copy.

    warning: this argument (4 byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
      --> src/lifetime.rs:22:49
       |
    22 |     fn visit_opt_lifetime(&mut self, reference: &Token![&], lifetime: &mut Option<Lifetime>) {
       |                                                 ^^^^^^^^^^ help: consider passing by value instead: `$crate::token::And`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref
       = note: `-W clippy::trivially-copy-pass-by-ref` implied by `-W clippy::pedantic`
       = help: to override `-W clippy::pedantic` add `#[allow(clippy::trivially_copy_pass_by_ref)]`
@dtolnay dtolnay merged commit 4ec740e into master Jul 7, 2024
17 checks passed
@dtolnay dtolnay deleted the cloneimpls branch July 7, 2024 20:22
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.

1 participant