about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-07-31 12:58:22 -0700
committerbors <bors@rust-lang.org>2013-07-31 12:58:22 -0700
commit66a0b5870d7c1c436b197d744fba5ced2e5f6462 (patch)
treeb66a6c13a83b7a824594aaecf876f911cff5cc47
parente07e49ea8fa0c0666a1b59ff1238f995ce84722c (diff)
parentc725926cf5964c4510e2c9ee656c24c48451e88c (diff)
downloadrust-66a0b5870d7c1c436b197d744fba5ced2e5f6462.tar.gz
rust-66a0b5870d7c1c436b197d744fba5ced2e5f6462.zip
auto merge of #8150 : dotdash/rust/assert_bloat, r=huonw
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.
-rw-r--r--src/libsyntax/ext/expand.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs
index 72bbc4a96c5..1d5e12b0d41 100644
--- a/src/libsyntax/ext/expand.rs
+++ b/src/libsyntax/ext/expand.rs
@@ -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) => {