Skip to content

Conversation

tertsdiepraam
Copy link

@tertsdiepraam tertsdiepraam commented Jul 1, 2022

Hi!

In the uutils/coreutils repository, we ran into this issue: uutils/coreutils#3687. The minimum reproducible case is:

quick_error! {
    #[derive(Debug)]
    enum Error {
        SomeError(s: String, err: io::Error) {
            context(s: String, err: io::Error) -> (s, err)
        }
    }
}

and then running cargo clippy -- -D warnings. In this case, an impl is generated with the lifetime 'a, which is not used, since all the arguments to the context are owned, which triggers the clippy lint.

This might be a fairly niche issue, since we treat clippy warnings as errors, but it would still be nice to fix this upstream. Allowing the lint on the context impl fixed the issue.

Edit: I should probably mention that we started seeing this problem with Rust 1.62.

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