Skip to content

Commit b16a66f

Browse files
authored
Merge branch 'rust-lang:master' into illumos-aarch64-target
2 parents d782c8d + 091bb74 commit b16a66f

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

compiler/rustc_builtin_macros/src/assert.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub fn expand_assert<'cx>(
8585
DUMMY_SP,
8686
Symbol::intern(&format!(
8787
"assertion failed: {}",
88-
pprust::expr_to_string(&cond_expr).escape_debug()
88+
pprust::expr_to_string(&cond_expr)
8989
)),
9090
)],
9191
);
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// run-fail
2+
// check-run-results
3+
// exec-env:RUST_BACKTRACE=0
4+
// ignore-emscripten no processes
5+
// ignore-tidy-linelength
6+
7+
fn main() {
8+
assert!(1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 == 0);
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
thread 'main' panicked at $DIR/assert-long-condition.rs:8:5:
2+
assertion failed: 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18
3+
+ 19 + 20 + 21 + 22 + 23 + 24 + 25 == 0
4+
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

0 commit comments

Comments
 (0)