File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
compiler/rustc_builtin_macros/src Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 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 number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments