@@ -42,7 +42,7 @@ macro_rules! assert_eq {
42
42
// The reborrows below are intentional. Without them, the stack slot for the
43
43
// borrow is initialized even before the values are compared, leading to a
44
44
// 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 ) , "`" ) ) ;
46
46
}
47
47
}
48
48
}
@@ -55,7 +55,7 @@ macro_rules! assert_eq {
55
55
// The reborrows below are intentional. Without them, the stack slot for the
56
56
// borrow is initialized even before the values are compared, leading to a
57
57
// 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 ) , "`" ) ) ;
59
59
}
60
60
}
61
61
}
@@ -92,7 +92,7 @@ macro_rules! assert_ne {
92
92
// The reborrows below are intentional. Without them, the stack slot for the
93
93
// borrow is initialized even before the values are compared, leading to a
94
94
// 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 ) , "`" ) ) ;
96
96
}
97
97
}
98
98
}
@@ -105,7 +105,7 @@ macro_rules! assert_ne {
105
105
// The reborrows below are intentional. Without them, the stack slot for the
106
106
// borrow is initialized even before the values are compared, leading to a
107
107
// 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 ) , "`" ) ) ;
109
109
}
110
110
}
111
111
}
0 commit comments