]> git.lizzy.rs Git - rust.git/commit
Improve error message for non-exhaustive patterns
authorVincent Esche <regexident@gmail.com>
Tue, 19 Jan 2016 07:40:07 +0000 (08:40 +0100)
committerVincent Esche <regexident@gmail.com>
Tue, 19 Jan 2016 07:42:55 +0000 (08:42 +0100)
commit6100743842ace6db859edfeed9959ac941210c2b
treea6707f7329ab3a2d0d166cdf587ee13dd788a77b
parent7a7307e5cf08ad25de62d4f9e13ddd58c59881c8
Improve error message for non-exhaustive patterns

Changes error message from displaying first found missing constructor witness to showing up to 10, if necessary.

Fixes issue #16884.
src/librustc/middle/check_match.rs
src/test/compile-fail/non-exhaustive-pattern-witness.rs