@@ -66,7 +66,7 @@ macro_rules! assert_eq {
6666 // The reborrows below are intentional. Without them, the stack slot for the
6767 // borrow is initialized even before the values are compared, leading to a
6868 // noticeable slow down.
69- $crate:: macros_internals:: assert_failed( "==" , & * left_val, & * right_val) ;
69+ $crate:: macros_internals:: assert_failed( "==" , & * left_val, & * right_val, $crate :: option :: Option :: None ) ;
7070 }
7171 }
7272 }
@@ -78,7 +78,7 @@ macro_rules! assert_eq {
7878 // The reborrows below are intentional. Without them, the stack slot for the
7979 // borrow is initialized even before the values are compared, leading to a
8080 // noticeable slow down.
81- $crate:: macros_internals:: assert_failed_args ( "==" , & * left_val, & * right_val, $crate:: format_args!( $( $arg) +) ) ;
81+ $crate:: macros_internals:: assert_failed ( "==" , & * left_val, & * right_val, $crate:: option :: Option :: Some ( $crate :: format_args!( $( $arg) +) ) ) ;
8282 }
8383 }
8484 }
@@ -113,7 +113,7 @@ macro_rules! assert_ne {
113113 // The reborrows below are intentional. Without them, the stack slot for the
114114 // borrow is initialized even before the values are compared, leading to a
115115 // noticeable slow down.
116- $crate:: macros_internals:: assert_failed( "!=" , & * left_val, & * right_val) ;
116+ $crate:: macros_internals:: assert_failed( "!=" , & * left_val, & * right_val, $crate :: option :: Option :: None ) ;
117117 }
118118 }
119119 }
@@ -125,7 +125,7 @@ macro_rules! assert_ne {
125125 // The reborrows below are intentional. Without them, the stack slot for the
126126 // borrow is initialized even before the values are compared, leading to a
127127 // noticeable slow down.
128- $crate:: macros_internals:: assert_failed_args ( "!=" , & * left_val, & * right_val, $crate:: format_args!( $( $arg) +) ) ;
128+ $crate:: macros_internals:: assert_failed ( "!=" , & * left_val, & * right_val, $crate:: option :: Option :: Some ( $crate :: format_args!( $( $arg) +) ) ) ;
129129 }
130130 }
131131 }
0 commit comments