rust/src/test
bors af7de7b677 Auto merge of #45162 - chrisvittal:mir-testing, r=nikomatsakis
Modify MIR testing to require consecutive lines

MIR testing now requires that lines be consecutive. To achive this,
instead of collecting the expected mir as a string, it is now wrapped in
an `ExpectedLine` enum, that is either `Elision` or `Text(T)` where `T:
AsRef<str>`. `Text` lines must be matched in order, unless separated by
`Elision` lines. Elision occurs lazily, that is, an Elision will skip
as few lines as possible.

To add a new elision marker. Put a comment containing only "..." and
whitespace in any MIR testing block. Like so:

```
// fn write_42(_1: *mut i32) -> bool {
//     ...
//     bb0: {
//         Validate(Acquire, [_1: *mut i32]);
//         Validate(Release, [_1: *mut i32]);
//         ...
//         return;
//     }
// }
```

Right now, all input before the line right after `// START` is elided,
and all input after the line right before `// END` is also not tested.

Many tests need to be updated. That will follow in the next commit.

cc #45153
r? @nikomatsakis
2017-10-14 11:22:46 +00:00
..
codegen rustc: Add LLVM nounwind with -C panic=abort 2017-10-11 09:05:38 -07:00
codegen-units rustc: Don't inline in CGUs at -O0 2017-10-07 19:09:46 -07:00
compile-fail Rollup merge of #45133 - GuillaumeGomez:usize-index-msg, r=dtolnay 2017-10-13 23:37:55 +08:00
compile-fail-fulldeps
debuginfo Implement display_hint in gdb pretty printers 2017-10-06 13:05:53 -06:00
incremental Auto merge of #45104 - vitiral:incr_auto_assert2, r=michaelwoerister 2017-10-14 04:11:49 +00:00
mir-opt Auto merge of #45162 - chrisvittal:mir-testing, r=nikomatsakis 2017-10-14 11:22:46 +00:00
parse-fail output compiler message updated 2017-10-10 23:52:45 -03:00
pretty Fix tests 2017-10-08 23:52:15 +09:00
run-fail
run-fail-fulldeps
run-make Rollup merge of #45108 - phil-opp:patch-2, r=japaric 2017-10-10 22:44:07 +08:00
run-pass Rollup merge of #45189 - alexcrichton:thinlto-allocators, r=michaelwoerister 2017-10-13 23:37:58 +08:00
run-pass-fulldeps Auto merge of #45020 - MaloJaffre:needs-test, r=alexcrichton 2017-10-08 14:44:12 +00:00
run-pass-valgrind
rustdoc Rollup merge of #44989 - QuietMisdreavus:what-is-your-quest, r=GuillaumeGomez 2017-10-13 01:58:36 +08:00
ui Auto merge of #45069 - sinkuu:tuple_arg, r=nikomatsakis 2017-10-13 20:14:38 +00:00
ui-fulldeps
COMPILER_TESTS.md