Made fail! and assert! accept both &'static str and ~str, as well as a fmt! like format list.

Unwinding through macros now happens as a call to the trait function `FailWithCause::fail_with()`, which consumes self, allowing to use a more generic failure object in the future.
This commit is contained in:
Marvin Löbel 2013-04-23 22:30:58 +02:00
parent 1d53babd2f
commit e1be9ae224
9 changed files with 90 additions and 26 deletions

View file

@ -1,4 +1,4 @@
// error-pattern:expected: 15, given: 14
// error-pattern:left: 14 != right: 15
#[deriving(Eq)]
struct Point { x : int }