rust/src/libsyntax
Steven Fackler 616af6eb83 Allow message specification for should_fail
The test harness will make sure that the panic message contains the
specified string. This is useful to help make `#[should_fail]` tests a
bit less brittle by decreasing the chance that the test isn't
"accidentally" passing due to a panic occurring earlier than expected.
The behavior is in some ways similar to JUnit's `expected` feature:
`@Test(expected=NullPointerException.class)`.

Without the message assertion, this test would pass even though it's not
actually reaching the intended part of the code:
```rust
 #[test]
 #[should_fail(message = "out of bounds")]
fn test_oob_array_access() {
    let idx: uint = from_str("13o").unwrap(); // oops, this will panic
    [1i32, 2, 3][idx];
}
```
2014-12-06 15:13:48 -08:00
..
ast_map Replace some verbose match statements with their if let equivalent. 2014-11-29 16:41:21 -05:00
diagnostics Modify libsyntax/diagnostics to not be so persnickety. The scheme 2014-12-04 10:04:51 -05:00
ext rollup merge of #19387: jauhien/fix-expand_quote_ty 2014-12-05 10:06:44 -08:00
parse rollup merge of #19494: P1start/better-expected 2014-12-05 10:07:36 -08:00
print auto merge of #19405 : jfager/rust/de-match-pyramid, r=bstrie 2014-12-01 21:56:53 +00:00
util Fix fallout 2014-12-03 10:41:48 -05:00
abi.rs
ast_util.rs Replace some verbose match statements with their if let equivalent. 2014-11-29 16:41:21 -05:00
ast.rs syntax: Make asm! clobbers a proper vector. 2014-11-30 11:58:23 +09:00
attr.rs Replace equiv method calls with == operator sugar 2014-12-03 10:41:48 -05:00
codemap.rs rollup merge of #19329: steveklabnik/doc_style_cleanup2 2014-11-26 16:51:02 -08:00
config.rs Fallout from stabilization 2014-11-25 17:41:54 -08:00
diagnostic.rs
feature_gate.rs rollup merge of #19492: steveklabnik/remove_outdated_comment 2014-12-05 10:07:34 -08:00
fold.rs Rote changes due to the fact that ast paths no longer carry this extraneous bounds. 2014-11-26 11:42:06 -05:00
lib.rs Remove special casing for some meta attributes 2014-11-26 11:44:45 -08:00
owned_slice.rs rollup merge of #19326: huonw/safer-syntax 2014-11-26 16:50:12 -08:00
ptr.rs
show_span.rs
std_inject.rs
test.rs Allow message specification for should_fail 2014-12-06 15:13:48 -08:00
visit.rs Replace some verbose match statements with their if let equivalent. 2014-11-29 16:41:21 -05:00