File tree 6 files changed +6
-6
lines changed
6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -543,7 +543,7 @@ impl CodeGenerator for Type {
543
543
let simple_enum_path = match inner_rust_type. node {
544
544
ast:: TyKind :: Path ( None , ref p) => {
545
545
if applicable_template_args. is_empty ( ) &&
546
- ! inner_item. expect_type ( ) . canonical_type ( ctx) . is_builtin_or_named ( ) &&
546
+ inner_item. expect_type ( ) . canonical_type ( ctx) . is_enum ( ) &&
547
547
p. segments . iter ( ) . all ( |p| p. parameters . is_none ( ) ) {
548
548
Some ( p. clone ( ) )
549
549
} else {
Original file line number Diff line number Diff line change @@ -46,4 +46,4 @@ impl _bindgen_ty_1 {
46
46
( ( val as u32 as u32 ) << 24u32 ) & ( 4278190080usize as u32 ) ;
47
47
}
48
48
}
49
- pub use self :: _bindgen_ty_1 as mach_msg_type_descriptor_t ;
49
+ pub type mach_msg_type_descriptor_t = _bindgen_ty_1 ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ fn bindgen_test_layout_Foo() {
17
17
impl Clone for Foo {
18
18
fn clone ( & self ) -> Self { * self }
19
19
}
20
- pub use self :: Foo as TypedefedFoo ;
20
+ pub type TypedefedFoo = Foo ;
21
21
#[ repr( C ) ]
22
22
#[ derive( Debug , Copy ) ]
23
23
pub struct Bar {
Original file line number Diff line number Diff line change @@ -25,5 +25,5 @@ pub mod root {
25
25
fn clone ( & self ) -> Self { * self }
26
26
}
27
27
}
28
- pub use self :: super :: root:: foo:: Bar as ReferencesBar ;
28
+ pub type ReferencesBar = root:: foo:: Bar ;
29
29
}
Original file line number Diff line number Diff line change @@ -44,4 +44,4 @@ fn bindgen_test_layout__bindgen_ty_1() {
44
44
impl Clone for _bindgen_ty_1 {
45
45
fn clone ( & self ) -> Self { * self }
46
46
}
47
- pub use self :: _bindgen_ty_1 as nsStyleUnion ;
47
+ pub type nsStyleUnion = _bindgen_ty_1 ;
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ pub struct _bindgen_ty_1 {
13
13
impl Clone for _bindgen_ty_1 {
14
14
fn clone ( & self ) -> Self { * self }
15
15
}
16
- pub use self :: _bindgen_ty_1 as max_align_t ;
16
+ pub type max_align_t = _bindgen_ty_1 ;
You can’t perform that action at this time.
0 commit comments