Fix cosmetics for fail!() calls
This commit is contained in:
parent
bdc182cc41
commit
04de8f852c
21 changed files with 47 additions and 63 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// error-pattern:left: 14 != right: 15
|
||||
// error-pattern:left: 14 does not equal right: 15
|
||||
|
||||
#[deriving(Eq)]
|
||||
struct Point { x : int }
|
||||
|
|
|
|||
|
|
@ -10,5 +10,5 @@
|
|||
|
||||
// error-pattern:giraffe
|
||||
fn main() {
|
||||
fail!({ while true { fail!(~"giraffe")}; "clandestine" });
|
||||
fail!({ while true { fail!("giraffe") }; "clandestine" });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ macro_rules! check_fancy {
|
|||
match t_.get_ref() {
|
||||
(23, $v) => { $chk }
|
||||
_ => fail!("Thing::<%s>(23, %s).get_ref() != (23, _)",
|
||||
stringify!($T), stringify!($e))
|
||||
stringify!($T), stringify!($e))
|
||||
}
|
||||
}}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue