4 ms·
A question about Cargo Fix. Is that only on warnings, or can/does it currently fix errors it knows the problem with as well?
by runevault 8y ago
A question about Cargo Fix. Is that only on warnings, or can/does it currently fix errors it knows the problem with as well?
- steveklabnik 8y agoI'm not 100% sure, but right now, the focus has mostly been on the use-case of upgrading to Rust 2018, which is warnings-based. I'd imagine it would eventually support both, but am not 100% sure about where exactly it is today. Errors are a bit more challenging, because fixing an error may introduce more, new errors, making it harder to tell if applying the fix is correct or not.
- runevault 8y agoThat's part of why I was wondering. Looking forward to playing with it (plus having Clippy on stable since that's all I use)
- steveklabnik 8y agoI asked the dev on Discord and he said: > I think in theory we could fix errors too, because they have the same diagnostics format. Don't think we do that right now though, and we are probably not prepared to handle the compiler exiting with a non-zero code So yeah, seems like that's the issue.