about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-13 20:35:28 +0100
committerGitHub <noreply@github.com>2019-12-13 20:35:28 +0100
commitdf9e491fb238ff7b7bfee8dd2d3f01158ac8b0d3 (patch)
tree40e01a66c07aed56b80b80b010e18bd84d73deaf /src/test/debuginfo/enum-thinlto.rs
parent3964a55ba59bb6c3d4badcbddc49f6929ef76862 (diff)
parentfbd2cd09e6fd044cad02af97e581853f1875ab2a (diff)
downloadrust-df9e491fb238ff7b7bfee8dd2d3f01158ac8b0d3.tar.gz
rust-df9e491fb238ff7b7bfee8dd2d3f01158ac8b0d3.zip
Rollup merge of #67026 - Nadrieril:improve-usefulness-empty, r=varkor,Centril,estebank
Improve diagnostics and code for exhaustiveness of empty matches

There was a completely separate check and diagnostics for the case of an empty match. This led to slightly different error messages and duplicated code.
This improves code reuse and generally clarifies what happens for empty matches. This also clarifies the action of the `exhaustive_patterns` feature, and ensures that this feature doesn't change diagnostics in places it doesn't need to.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions