@@ -42,7 +42,7 @@ macro_rules! assert_eq {
4242 // The reborrows below are intentional. Without them, the stack slot for the
4343 // borrow is initialized even before the values are compared, leading to a
4444 // noticeable slow down.
45- $crate:: panicking:: assert_failed( kind, & * left_val, & * right_val, $crate:: option:: Option :: None ) ;
45+ $crate:: panicking:: assert_failed( kind, & * left_val, & * right_val, $crate:: option:: Option :: None , $crate :: concat! ( "assertion failed: `" , $crate :: stringify! ( $left ) , " == " , $crate :: stringify! ( $right ) , "`" ) ) ;
4646 }
4747 }
4848 }
@@ -55,7 +55,7 @@ macro_rules! assert_eq {
5555 // The reborrows below are intentional. Without them, the stack slot for the
5656 // borrow is initialized even before the values are compared, leading to a
5757 // noticeable slow down.
58- $crate:: panicking:: assert_failed( kind, & * left_val, & * right_val, $crate:: option:: Option :: Some ( $crate:: format_args!( $( $arg) +) ) ) ;
58+ $crate:: panicking:: assert_failed( kind, & * left_val, & * right_val, $crate:: option:: Option :: Some ( $crate:: format_args!( $( $arg) +) ) , $crate :: concat! ( "assertion failed: `" , $crate :: stringify! ( $left ) , " == " , $crate :: stringify! ( $right ) , "`" ) ) ;
5959 }
6060 }
6161 }
@@ -92,7 +92,7 @@ macro_rules! assert_ne {
9292 // The reborrows below are intentional. Without them, the stack slot for the
9393 // borrow is initialized even before the values are compared, leading to a
9494 // noticeable slow down.
95- $crate:: panicking:: assert_failed( kind, & * left_val, & * right_val, $crate:: option:: Option :: None ) ;
95+ $crate:: panicking:: assert_failed( kind, & * left_val, & * right_val, $crate:: option:: Option :: None , $crate :: concat! ( "assertion failed: `" , $crate :: stringify! ( $left ) , " != " , $crate :: stringify! ( $right ) , "`" ) ) ;
9696 }
9797 }
9898 }
@@ -105,7 +105,7 @@ macro_rules! assert_ne {
105105 // The reborrows below are intentional. Without them, the stack slot for the
106106 // borrow is initialized even before the values are compared, leading to a
107107 // noticeable slow down.
108- $crate:: panicking:: assert_failed( kind, & * left_val, & * right_val, $crate:: option:: Option :: Some ( $crate:: format_args!( $( $arg) +) ) ) ;
108+ $crate:: panicking:: assert_failed( kind, & * left_val, & * right_val, $crate:: option:: Option :: Some ( $crate:: format_args!( $( $arg) +) ) , $crate :: concat! ( "assertion failed: `" , $crate :: stringify! ( $left ) , " != " , $crate :: stringify! ( $right ) , "`" ) ) ;
109109 }
110110 }
111111 }
0 commit comments