rust/src/test
bors 9310e3bd4f Auto merge of #71930 - Nadrieril:exhaustiveness-remove-tyerr, r=varkor
De-abuse TyKind::Error in exhaustiveness checking

Replaces https://github.com/rust-lang/rust/pull/71074. Context: https://github.com/rust-lang/rust/issues/70866.

In order to remove the use of `TyKind::Error`, I had to make sure we skip over those fields whose inhabitedness should not be observed. This is potentially error-prone however, since we must be careful not to mix filtered and unfiltered lists of patterns. I managed to hide away most of the filtering behind a new `Fields` struct, that I used everywhere relevant. I quite like the result; I think the twin concepts of `Constructor` and `Fields` make a good mental model.

As usual, I tried to separate commits that shuffle code around from commits that require more thought to review.

cc @varkor @Centril
2020-05-21 18:52:46 +00:00
..
assembly Fix tests 2020-05-18 14:41:34 +01:00
auxiliary test: Fix warnings in rust_test_helpers.c 2020-05-06 23:54:05 +03:00
codegen Auto merge of #71718 - NeoRaider:ffi_const_pure, r=Amanieu 2020-05-21 15:02:08 +00:00
codegen-units Keep codegen units unmerged when building compiler builtins 2020-04-06 00:00:00 +00:00
compile-fail Add Option to Force Unwind Tables 2020-05-04 12:08:35 +01:00
debuginfo ret has been optimized away in debuginfo test 2020-05-16 17:15:24 -07:00
incremental Rollup merge of #72045 - RalfJung:incomplete-unsound, r=petrochenkov 2020-05-16 19:46:29 +02:00
mir-opt Auto merge of #72205 - ecstatic-morse:nrvo, r=oli-obk 2020-05-21 07:16:44 +00:00
pretty Add tests for asm! 2020-05-18 14:41:32 +01:00
run-make Use Cell::take in a couple places 2020-04-26 11:50:53 +02:00
run-make-fulldeps Auto merge of #70674 - cjgillot:query-arena-all, r=matthewjasper 2020-05-01 01:38:05 +00:00
run-pass-valgrind
rustdoc Make intra links work inside trait impl block 2020-05-13 20:24:14 +02:00
rustdoc-js Make current crate aliases go first 2020-05-14 11:36:02 +02:00
rustdoc-js-std Make current crate aliases go first 2020-05-14 11:36:02 +02:00
rustdoc-ui Add rustdoc regression test for the unused_braces lint 2020-04-24 19:15:07 +02:00
rustfix
ui Auto merge of #71930 - Nadrieril:exhaustiveness-remove-tyerr, r=varkor 2020-05-21 18:52:46 +00:00
ui-fulldeps Remove ty::UnnormalizedProjection 2020-05-12 01:56:29 -04:00
COMPILER_TESTS.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00