-
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
Problem with cargo clippy --fix #10718
Comments
Minimized to struct T {
v: Vec<Box<usize>>,
}
fn main() {
let mut t = T { v: vec![] };
t.v.push(Box::new(1usize));
}
|
Should be a clippy issue. Could you transfer this to https://github.com/rust-lang/rust-clippy ? |
@matthiaskrgr could you transfer this to the clippy repo please? |
@rustbot claim |
I don't think this problem can be solved without almost re-writing a big part of the original lint. I'll unnassign myself and maybe try in a few months, if someone else wants to try, it's free. @rustbot label: +E-hard |
Creating such a suggestion would be out of scope of clippy since it would approach a global analysis, but for the issue at hand changing the applicability to |
I tried to run
cargo clippy --fix
on this code:I expected to see this happen: not a failure
Instead, this happened: failure see below
Meta
Click here for full output
The text was updated successfully, but these errors were encountered: