File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change 179
179
equal to or greater than 1.71.
180
180
This comes as a result of the ABI being stabilised (in Rust 1.71).
181
181
## Removed
182
+ - The ` extra_assert ` and ` extra_assert_eq ` macros are no longer exported.
182
183
## Fixed
183
184
- Bindgen no longer panics when parsing an objective-C header that includes a
184
185
Rust keyword that cannot be a raw identifier, such as: ` self ` , ` crate ` ,
Original file line number Diff line number Diff line change 3
3
4
4
/// Simple macro that forwards to assert! when using
5
5
/// __testing_only_extra_assertions.
6
- #[ macro_export]
7
6
macro_rules! extra_assert {
8
7
( $cond: expr ) => {
9
8
if cfg!( feature = "__testing_only_extra_assertions" ) {
@@ -16,19 +15,3 @@ macro_rules! extra_assert {
16
15
}
17
16
} ;
18
17
}
19
-
20
- /// Simple macro that forwards to assert_eq! when using
21
- /// __testing_only_extra_assertions.
22
- #[ macro_export]
23
- macro_rules! extra_assert_eq {
24
- ( $lhs: expr , $rhs: expr ) => {
25
- if cfg!( feature = "__testing_only_extra_assertions" ) {
26
- assert_eq!( $lhs, $rhs) ;
27
- }
28
- } ;
29
- ( $lhs: expr , $rhs: expr , $( $arg: tt ) + ) => {
30
- if cfg!( feature = "__testing_only_extra_assertions" ) {
31
- assert!( $lhs, $rhs, $( $arg ) * ) ;
32
- }
33
- } ;
34
- }
You can’t perform that action at this time.
0 commit comments