rust/src/libsyntax
bors 195c42c426 Auto merge of #37749 - keeperofdakeys:should-panic, r=alexcrichton
Improvements to the #[should_panic] feature

Add more error checking for the `#[should_panic]` attribute, and print the expected panic string when it does not match.

Fixes https://github.com/rust-lang/rust/issues/29000

Eg:
```running 3 tests
test test2 ... ok
test test1 ... FAILED
: Panic did not include expected string 'foo'
test test3 ... FAILED

failures:

---- test1 stdout ----
	thread 'test1' panicked at 'bar', test.rs:7
note: Run with `RUST_BACKTRACE=1` for a backtrace.

---- test3 stdout ----
	thread 'test3' panicked at 'bar', test.rs:18

```
2016-11-18 08:24:00 -08:00
..
diagnostics libsyntax: clearer names for some AST parts 2016-09-28 22:31:18 +02:00
ext Resolve imports during expansion. 2016-11-17 08:07:44 +00:00
parse Auto merge of #37278 - matklad:lone-lifetime, r=jseyfried 2016-11-14 02:46:12 -08:00
print syntax: don't fake a block around closures' bodies during parsing. 2016-11-10 01:44:45 +02:00
util Change implementation of syntax::util::SmallVector to use data_structures::SmallVec. 2016-11-11 07:38:48 -07:00
abi.rs check target abi support 2016-10-24 15:59:53 +02:00
ast.rs syntax: don't fake a block around closures' bodies during parsing. 2016-11-10 01:44:45 +02:00
attr.rs do not use deprecated text for unstable docs 2016-11-13 19:00:56 -05:00
Cargo.toml Change implementation of syntax::util::SmallVector to use data_structures::SmallVec. 2016-11-11 07:38:48 -07:00
codemap.rs Rename Parser::last_span as prev_span. 2016-10-05 08:53:18 +11:00
config.rs Change implementation of syntax::util::SmallVector to use data_structures::SmallVec. 2016-11-11 07:38:48 -07:00
diagnostic_list.rs Implement RFC#1559: allow all literals in attributes. 2016-08-25 13:25:22 -07:00
entry.rs [breaking-change] don't glob export ast::Item_ variants 2016-02-11 12:34:48 +01:00
feature_gate.rs Add feature use_extern_macros. 2016-11-17 08:08:06 +00:00
fold.rs syntax: don't fake a block around closures' bodies during parsing. 2016-11-10 01:44:45 +02:00
json.rs Allow supplying an error destination via the compiler driver 2016-09-28 16:20:30 +13:00
lib.rs Change implementation of syntax::util::SmallVector to use data_structures::SmallVec. 2016-11-11 07:38:48 -07:00
ptr.rs Documentation for default types modified 2016-09-11 22:58:01 +05:30
show_span.rs Remove the type parameter from syntax::visit::Visitor 2016-06-14 07:40:32 +00:00
std_inject.rs Combine std_inject::{no_core, no_std} into std_inject::injected_crate_name. 2016-10-07 21:54:01 +00:00
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
test.rs Add warnings when the #[should_panic] attribute is invalid 2016-11-14 22:22:17 +10:30
tokenstream.rs Move doc comment desugaring into the parser. 2016-11-03 23:48:24 +00:00
visit.rs syntax: don't fake a block around closures' bodies during parsing. 2016-11-10 01:44:45 +02:00