File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1720,7 +1720,7 @@ impl MethodCodegen for Method {
1720
1720
let signature_item = ctx. resolve_item ( function. signature ( ) ) ;
1721
1721
let mut name = match self . kind ( ) {
1722
1722
MethodKind :: Constructor => "new" . into ( ) ,
1723
- MethodKind :: Destructor => "__bindgen_destructor__ " . into ( ) ,
1723
+ MethodKind :: Destructor => "destruct " . into ( ) ,
1724
1724
_ => function. name ( ) . to_owned ( ) ,
1725
1725
} ;
1726
1726
Original file line number Diff line number Diff line change @@ -27,7 +27,5 @@ extern "C" {
27
27
}
28
28
impl Foo {
29
29
#[ inline]
30
- pub unsafe fn __bindgen_destructor__ ( & mut self ) {
31
- Foo_Foo_destructor ( & mut * self )
32
- }
30
+ pub unsafe fn destruct ( & mut self ) { Foo_Foo_destructor ( & mut * self ) }
33
31
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ extern "C" {
22
22
}
23
23
impl cv_String {
24
24
#[ inline]
25
- pub unsafe fn __bindgen_destructor__ ( & mut self ) {
25
+ pub unsafe fn destruct ( & mut self ) {
26
26
cv_String_String_destructor ( & mut * self )
27
27
}
28
28
}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ extern "C" {
58
58
}
59
59
impl UnionWithDtor {
60
60
#[ inline]
61
- pub unsafe fn __bindgen_destructor__ ( & mut self ) {
61
+ pub unsafe fn destruct ( & mut self ) {
62
62
UnionWithDtor_UnionWithDtor_destructor ( & mut * self )
63
63
}
64
64
}
You can’t perform that action at this time.
0 commit comments