rust/tests
bors cc9088f287 Auto merge of #5550 - ebroto:manual_non_exhaustive, r=flip1995
Implement the manual_non_exhaustive lint

Some implementation notes:
* Not providing automatic fixups because additional changes may be needed in other parts of the code, e.g. when constructing a struct.
* Even though the attribute is valid on enum variants, it's not possible to use the manual implementation of the pattern because the visibility is always public, so the lint ignores enum variants.
* Unit structs are also ignored, it's not possible to implement the pattern manually without fields.
* The attribute is not accepted in unions, so those are ignored too.
* Even though the original issue did not mention it, tuple structs are also linted because it's possible to apply the pattern manually.

changelog: Added the manual non-exhaustive implementation lint

Closes #2017
2020-05-02 13:53:39 +00:00
..
auxiliary
cargo
ui Auto merge of #5550 - ebroto:manual_non_exhaustive, r=flip1995 2020-05-02 13:53:39 +00:00
ui-toml Add test for zero single char names 2020-04-15 13:35:44 +02:00
compile-test.rs
dogfood.rs
fmt.rs
integration.rs
missing-test-files.rs
versioncheck.rs