rustc/vendor/rustfix
2020-09-04 16:38:49 +01:00
..
proptest-regressions New upstream version 1.32.0~beta.2+dfsg1 2018-12-16 10:13:16 -08:00
src New upstream version 1.47.0~beta.2+dfsg1 2020-09-04 16:38:49 +01:00
.cargo-checksum.json New upstream version 1.47.0~beta.2+dfsg1 2020-09-04 16:38:49 +01:00
Cargo.toml New upstream version 1.47.0~beta.2+dfsg1 2020-09-04 16:38:49 +01:00
Changelog.md New upstream version 1.38.0+dfsg1 2019-11-25 21:38:20 +00:00
LICENSE-APACHE New upstream version 1.32.0~beta.2+dfsg1 2018-12-16 10:13:16 -08:00
LICENSE-MIT New upstream version 1.32.0~beta.2+dfsg1 2018-12-16 10:13:16 -08:00
Readme.md New upstream version 1.42.0+dfsg1 2020-04-04 01:11:41 +01:00

rustfix

The goal of this tool is to read and apply the suggestions made by rustc.

Current status

Currently, rustfix is split into two crates:

  • rustfix, a library for consuming and applying suggestions in the format that rustc outputs
  • and cargo-fix, a binary that works as cargo subcommand and that end users will use to fix their code.

The magic of rustfix is entirely dependent on the diagnostics implement in the Rust compiler (and external lints, like clippy).

Installation

To use the rustfix library, add it to your Cargo.toml.

To get the tool to automatically fix warnings in, run cargo install cargo-fix. This will give you cargo fix.

Using cargo fix to transition to Rust 2018

Instructions on how to use this tool to transition a crate to Rust 2018 can be found in the Rust Edition Guide.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.