rust/src/test/ui/bad
bors 57d7cfc3cf Auto merge of #56645 - pietroalbini:fix-unused-imports, r=estebank
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>
2019-02-11 10:34:09 +00:00
..
bad-const-type.rs Improve type mismatch error messages 2018-12-31 20:43:08 -05:00
bad-const-type.stderr Improve type mismatch error messages 2018-12-31 20:43:08 -05:00
bad-crate-name.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-crate-name.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad-env-capture.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-env-capture.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad-env-capture2.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-env-capture2.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad-env-capture3.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-env-capture3.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad-expr-lhs.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-expr-lhs.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad-expr-path.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-expr-path.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad-expr-path2.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-expr-path2.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad-extern-link-attrs.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-extern-link-attrs.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad-intrinsic-monomorphization.rs const-stabilize const_int_ops + reverse_bits 2018-12-31 16:11:03 +01:00
bad-intrinsic-monomorphization.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad-lint-cap.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-lint-cap.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
bad-lint-cap2.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-lint-cap2.stderr unused_imports: update tests 2019-02-08 08:44:56 +01:00
bad-lint-cap3.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-lint-cap3.stderr unused_imports: update tests 2019-02-08 08:44:56 +01:00
bad-main.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-main.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad-method-typaram-kind.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-method-typaram-kind.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad-mid-path-type-params.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-mid-path-type-params.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad-module.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-module.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad-sized.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-sized.stderr Fix broken links to second edition TRPL. 2019-01-01 12:53:07 -05:00
bad-type-env-capture.rs Make name resolution handle consts in GenericParamsFromOuterFunction properly 2019-02-07 15:03:20 +01:00
bad-type-env-capture.stderr Make name resolution handle consts in GenericParamsFromOuterFunction properly 2019-02-07 15:03:20 +01:00