about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-05-02 13:53:39 +0000
committerbors <bors@rust-lang.org>2020-05-02 13:53:39 +0000
commitcc9088f2873300c98d35d4d028d53e474b55a96b (patch)
tree0b2b63e35738dee8a872f38959dda42e6b9dac48 /src/test/incremental/thinlto
parent991efa6375e548ff86334916a585a7e36a9d6839 (diff)
parent350c17de24c0bc7ee1b17981fe02f88ca6ec50a4 (diff)
downloadrust-cc9088f2873300c98d35d4d028d53e474b55a96b.tar.gz
rust-cc9088f2873300c98d35d4d028d53e474b55a96b.zip
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
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions