-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
cargo clippy crashes on my package #9746
Comments
Could you show the output of running |
the output of |
Here is the clippy output:
|
I just saw the message that says to run with RUST_BACKTRACE=full, so here is that output:
|
Thanks! I believe this is fixed by #9417, could you give it a go on the latest nightly? |
@Alexendoo I have similar problem in my package. I wrote minimal reproduction of this error, which still exists in clippy 0.1.66 (77e57db 2022-10-30) on lib. trait Trait {
}
struct Struct<'a> {
_inner: &'a Struct<'a>
}
impl Trait for Struct<'_> {
}
fn example<'a>(s: &'a Struct) -> Box<Box<dyn Trait + 'a>> {
Box::new(Box::new(Struct { _inner: s }))
} |
Yes, it does work on nightly. I'm very new to rust. Is it typically pretty stable to stay on nightly? I didn't see away to use just the nightly version of clippy. |
It's most common to stick to the stable channel rather than nightly, but if you have a project that requires nightly pinning a specific version for that project via a With rustup you can use e.g. Updating nightly to nightly usually goes fine, but roughly the more |
Awesome, thank you for the reply! |
I went ahead and created a GitHub repo for my project so you can repro it: https://github.com/rick-kilgore/climom/tree/refactoring
The text was updated successfully, but these errors were encountered: