Skip to content

Commit

Permalink
auto merge of rust-lang#8150 : dotdash/rust/assert_bloat, r=huonw
Browse files Browse the repository at this point in the history
Assertions without a message get a generated message that consists of a
prefix plus the stringified expression that is being asserted. That
prefix is currently a unique string, while a static string would be
sufficient and needs less code.
  • Loading branch information
bors committed Jul 31, 2013
2 parents e07e49e + c725926 commit 66a0b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/ext/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ pub fn std_macros() -> @str {
($cond:expr) => {
if !$cond {
::std::sys::FailWithCause::fail_with(
~\"assertion failed: \" + stringify!($cond), file!(), line!())
\"assertion failed: \" + stringify!($cond), file!(), line!())
}
};
($cond:expr, $msg:expr) => {
Expand Down

0 comments on commit 66a0b58

Please sign in to comment.