about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorChristopher Vittal <christopher.vittal@gmail.com>2017-10-09 21:12:11 -0400
committerChristopher Vittal <christopher.vittal@gmail.com>2017-10-09 23:22:28 -0400
commita5e8a0ea7c337225ba96248387b343f044205b7e (patch)
tree00bbb69aa5ee49884778727a37705bb988786463 /src/libstd/sys/unix/stack_overflow.rs
parent692b94ae25e0ae7d74cf15a5800e10a16239dab1 (diff)
downloadrust-a5e8a0ea7c337225ba96248387b343f044205b7e.tar.gz
rust-a5e8a0ea7c337225ba96248387b343f044205b7e.zip
Modify MIR testing to require continuous lines
Mir testing now requires that lines be continuous. 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. Matches occur greedily, 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
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions