]> git.lizzy.rs Git - rust.git/commit
Merge #3894
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Sat, 18 Apr 2020 18:42:07 +0000 (18:42 +0000)
committerGitHub <noreply@github.com>
Sat, 18 Apr 2020 18:42:07 +0000 (18:42 +0000)
commit6f60e646fc2aa50eb53e9c644f0f92651b04cc5b
tree507f92918f72c37e6ff3adf24b9ddefa83df42e1
parent98819d89199c5138cc5018b036b0ec5d3fade77e
parent7adb681b1f8dbdc0205efbe22698c28ab9da6378
Merge #3894

3894: Match check enum record r=flodiebold a=JoshMcguigan

This PR implements match statement exhaustiveness checking for record type enums.

It also make a minor addition to the test infrastructure to allow testing against a single diagnostic, so you can be sure your test is triggering (or not) whichever diagnostic you expect.

Co-authored-by: Josh Mcguigan <joshmcg88@gmail.com>