mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
57d7cfc3cf
Initial implementation of rustfixable unused_imports lint This PR adds the initial implementation of rustfixable `unused_imports` lint. The implementation works, but rustfix is not able to apply all the suggestions until https://github.com/rust-lang/rust/issues/53934 is fixed. It also needs https://github.com/rust-lang/rust/pull/58296 to hide the suggested note since it's really useless. cc https://github.com/rust-lang/rust/issues/47888 <details><summary><code>cargo fix</code> in action on the <code>unused_imports</code> lint</summary> ![screenshot from 2018-12-09 15-49-01](https://user-images.githubusercontent.com/2299951/49698874-3a026080-fbca-11e8-9bf1-24060b6c59c8.png) </details> |
||
---|---|---|
.. | ||
auxiliary | ||
codegen | ||
codegen-units | ||
compile-fail | ||
compile-fail-fulldeps/auxiliary | ||
debuginfo | ||
incremental | ||
mir-opt | ||
pretty | ||
run-fail | ||
run-make | ||
run-make-fulldeps | ||
run-pass | ||
run-pass-fulldeps | ||
run-pass-valgrind | ||
rustdoc | ||
rustdoc-js | ||
rustdoc-ui | ||
rustfix | ||
ui | ||
ui-fulldeps | ||
COMPILER_TESTS.md |