Skip to content

Commit b51ddf3

Browse files
author
bors-servo
authored
Auto merge of #829 - servo:disambig, r=emilio
Use fully disambiguated name instead of a number for layout tests (fixes #394) These numbers cause tons of churn in the diffs for checked in bindings. r? @fitzgen
2 parents 680094a + 3dedc2c commit b51ddf3

31 files changed

+68
-41
lines changed

src/codegen/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ impl CodeGenerator for TemplateInstantiation {
772772
let size = layout.size;
773773
let align = layout.align;
774774

775-
let name = item.canonical_name(ctx);
775+
let name = item.full_disambiguated_name(ctx);
776776
let mut fn_name = format!("__bindgen_test_layout_{}_instantiation", name);
777777
let times_seen = result.overload_number(&fn_name);
778778
if times_seen > 0 {

src/ir/item.rs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,33 @@ impl Item {
661661
}
662662
}
663663

664+
/// Create a fully disambiguated name for an item, including template
665+
/// parameters if it is a type
666+
pub fn full_disambiguated_name(&self, ctx: &BindgenContext) -> String {
667+
let mut s = String::new();
668+
let level = 0;
669+
self.push_disambiguated_name(ctx, &mut s, level);
670+
s
671+
}
672+
673+
/// Helper function for full_disambiguated_name
674+
fn push_disambiguated_name(&self, ctx: &BindgenContext, to: &mut String, level: u8) {
675+
to.push_str(&self.canonical_name(ctx));
676+
if let ItemKind::Type(ref ty) = *self.kind() {
677+
if let TypeKind::TemplateInstantiation(ref inst) = *ty.kind() {
678+
to.push_str(&format!("_open{}_", level));
679+
for arg in inst.template_arguments() {
680+
arg.into_resolver()
681+
.through_type_refs()
682+
.resolve(ctx)
683+
.push_disambiguated_name(ctx, to, level + 1);
684+
to.push_str("_");
685+
}
686+
to.push_str(&format!("close{}", level));
687+
}
688+
}
689+
}
690+
664691
/// Get this function item's name, or `None` if this item is not a function.
665692
fn func_name(&self) -> Option<&str> {
666693
match *self.kind() {

tests/expectations/tests/anon_union.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl Default for ErrorResult {
8080
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
8181
}
8282
#[test]
83-
fn __bindgen_test_layout_TErrorResult_instantiation() {
83+
fn __bindgen_test_layout_TErrorResult_open0_int_close0_instantiation() {
8484
assert_eq!(::std::mem::size_of::<TErrorResult>() , 24usize , concat ! (
8585
"Size of template specialization: " , stringify ! (
8686
TErrorResult ) ));

tests/expectations/tests/class_nested.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ extern "C" {
7878
pub static mut var: A_B;
7979
}
8080
#[test]
81-
fn __bindgen_test_layout_A_D_instantiation() {
81+
fn __bindgen_test_layout_A_D_open0_int_close0_instantiation() {
8282
assert_eq!(::std::mem::size_of::<A_D<::std::os::raw::c_int>>() , 4usize ,
8383
concat ! (
8484
"Size of template specialization: " , stringify ! (

tests/expectations/tests/class_with_dtor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl Default for WithoutDtor {
3535
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
3636
}
3737
#[test]
38-
fn __bindgen_test_layout_HandleWithDtor_instantiation() {
38+
fn __bindgen_test_layout_HandleWithDtor_open0_int_close0_instantiation() {
3939
assert_eq!(::std::mem::size_of::<HandleWithDtor<::std::os::raw::c_int>>()
4040
, 8usize , concat ! (
4141
"Size of template specialization: " , stringify ! (

tests/expectations/tests/crtp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ impl Default for DerivedFromBaseWithDestructor {
5151
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
5252
}
5353
#[test]
54-
fn __bindgen_test_layout_Base_instantiation() {
54+
fn __bindgen_test_layout_Base_open0_Derived_close0_instantiation() {
5555
assert_eq!(::std::mem::size_of::<Base>() , 1usize , concat ! (
5656
"Size of template specialization: " , stringify ! ( Base ) ));
5757
assert_eq!(::std::mem::align_of::<Base>() , 1usize , concat ! (
5858
"Alignment of template specialization: " , stringify ! ( Base )
5959
));
6060
}
6161
#[test]
62-
fn __bindgen_test_layout_BaseWithDestructor_instantiation() {
62+
fn __bindgen_test_layout_BaseWithDestructor_open0_DerivedFromBaseWithDestructor_close0_instantiation() {
6363
assert_eq!(::std::mem::size_of::<BaseWithDestructor>() , 1usize , concat !
6464
(
6565
"Size of template specialization: " , stringify ! (

tests/expectations/tests/default-template-parameter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl <T, U> Default for Foo<T, U> {
1616
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
1717
}
1818
#[test]
19-
fn __bindgen_test_layout_Foo_instantiation() {
19+
fn __bindgen_test_layout_Foo_open0_bool__int_close0_instantiation() {
2020
assert_eq!(::std::mem::size_of::<Foo<bool, ::std::os::raw::c_int>>() ,
2121
8usize , concat ! (
2222
"Size of template specialization: " , stringify ! (

tests/expectations/tests/forward-declaration-autoptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl Default for Bar {
4242
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
4343
}
4444
#[test]
45-
fn __bindgen_test_layout_RefPtr_instantiation() {
45+
fn __bindgen_test_layout_RefPtr_open0_Foo_close0_instantiation() {
4646
assert_eq!(::std::mem::size_of::<RefPtr<Foo>>() , 8usize , concat ! (
4747
"Size of template specialization: " , stringify ! ( RefPtr<Foo>
4848
) ));

tests/expectations/tests/inner_template_self.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl Default for InstantiateIt {
3737
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
3838
}
3939
#[test]
40-
fn __bindgen_test_layout_LinkedList_instantiation() {
40+
fn __bindgen_test_layout_LinkedList_open0_int_close0_instantiation() {
4141
assert_eq!(::std::mem::size_of::<LinkedList>() , 16usize , concat ! (
4242
"Size of template specialization: " , stringify ! ( LinkedList
4343
) ));

tests/expectations/tests/issue-372.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub mod root {
106106
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
107107
}
108108
#[test]
109-
fn __bindgen_test_layout_C_instantiation() {
109+
fn __bindgen_test_layout_C_open0_n_close0_instantiation() {
110110
assert_eq!(::std::mem::size_of::<[u64; 33usize]>() , 264usize , concat
111111
! (
112112
"Size of template specialization: " , stringify ! (

tests/expectations/tests/issue-569-non-type-template-params-causing-layout-test-failures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl Default for JS_AutoIdVector {
3737
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
3838
}
3939
#[test]
40-
fn __bindgen_test_layout_JS_Base_instantiation() {
40+
fn __bindgen_test_layout_JS_Base_open0_int_close0_instantiation() {
4141
assert_eq!(::std::mem::size_of::<JS_Base>() , 1usize , concat ! (
4242
"Size of template specialization: " , stringify ! ( JS_Base )
4343
));

tests/expectations/tests/issue-573-layout-test-failures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl Default for AutoIdVector {
3636
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
3737
}
3838
#[test]
39-
fn __bindgen_test_layout_Outer_instantiation() {
39+
fn __bindgen_test_layout_Outer_open0_int_close0_instantiation() {
4040
assert_eq!(::std::mem::size_of::<Outer>() , 1usize , concat ! (
4141
"Size of template specialization: " , stringify ! ( Outer ) ));
4242
assert_eq!(::std::mem::align_of::<Outer>() , 1usize , concat ! (

tests/expectations/tests/issue-574-assertion-failure-in-codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extern "C" {
3737
pub static mut AutoIdVector: _bindgen_ty_1;
3838
}
3939
#[test]
40-
fn __bindgen_test_layout_a_instantiation() {
40+
fn __bindgen_test_layout_a_open0_int_close0_instantiation() {
4141
assert_eq!(::std::mem::size_of::<a>() , 1usize , concat ! (
4242
"Size of template specialization: " , stringify ! ( a ) ));
4343
assert_eq!(::std::mem::align_of::<a>() , 1usize , concat ! (

tests/expectations/tests/issue-584-stylo-template-analysis-panic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ extern "C" {
8080
pub fn Servo_Element_GetSnapshot() -> A;
8181
}
8282
#[test]
83-
fn __bindgen_test_layout_f_instantiation() {
83+
fn __bindgen_test_layout_f_open0_e_open1_int_close1_close0_instantiation() {
8484
assert_eq!(::std::mem::size_of::<f>() , 1usize , concat ! (
8585
"Size of template specialization: " , stringify ! ( f ) ));
8686
assert_eq!(::std::mem::align_of::<f>() , 1usize , concat ! (

tests/expectations/tests/issue-674-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub mod root {
6767
pub _address: u8,
6868
}
6969
#[test]
70-
fn __bindgen_test_layout_StaticRefPtr_instantiation() {
70+
fn __bindgen_test_layout_StaticRefPtr_open0_B_close0_instantiation() {
7171
assert_eq!(::std::mem::size_of::<root::StaticRefPtr>() , 1usize ,
7272
concat ! (
7373
"Size of template specialization: " , stringify ! (

tests/expectations/tests/issue-691-template-parameter-virtual.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl Default for ServoElementSnapshotTable {
5151
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
5252
}
5353
#[test]
54-
fn __bindgen_test_layout_Set_instantiation() {
54+
fn __bindgen_test_layout_Set_open0_VirtualMethods_close0_instantiation() {
5555
assert_eq!(::std::mem::size_of::<Set>() , 4usize , concat ! (
5656
"Size of template specialization: " , stringify ! ( Set ) ));
5757
assert_eq!(::std::mem::align_of::<Set>() , 4usize , concat ! (

tests/expectations/tests/libclang-3.8/issue-769-bad-instantiation-test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub mod root {
1818
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
1919
}
2020
#[test]
21-
fn __bindgen_test_layout_Rooted_instantiation() {
21+
fn __bindgen_test_layout_Rooted_open0_int_close0_instantiation() {
2222
assert_eq!(::std::mem::size_of::<root::Rooted<::std::os::raw::c_int>>()
2323
, 4usize , concat ! (
2424
"Size of template specialization: " , stringify ! (
@@ -29,7 +29,7 @@ pub mod root {
2929
root::Rooted<::std::os::raw::c_int> ) ));
3030
}
3131
#[test]
32-
fn __bindgen_test_layout_Rooted_instantiation_1() {
32+
fn __bindgen_test_layout_Rooted_open0_int_close0_instantiation_1() {
3333
assert_eq!(::std::mem::size_of::<root::Rooted<::std::os::raw::c_int>>()
3434
, 4usize , concat ! (
3535
"Size of template specialization: " , stringify ! (

tests/expectations/tests/libclang-3.8/partial-specialization-and-inheritance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl Usage {
4646
}
4747
}
4848
#[test]
49-
fn __bindgen_test_layout__bindgen_ty_id_21_instantiation() {
49+
fn __bindgen_test_layout__bindgen_ty_id_21_open0__bindgen_ty_id_19_close0_instantiation() {
5050
assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! (
5151
"Size of template specialization: " , stringify ! (
5252
[u32; 2usize] ) ));

tests/expectations/tests/libclang-3.9/issue-769-bad-instantiation-test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub mod root {
1818
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
1919
}
2020
#[test]
21-
fn __bindgen_test_layout_Rooted_instantiation() {
21+
fn __bindgen_test_layout_Rooted_open0_int_close0_instantiation() {
2222
assert_eq!(::std::mem::size_of::<root::Rooted<::std::os::raw::c_int>>()
2323
, 4usize , concat ! (
2424
"Size of template specialization: " , stringify ! (
@@ -29,7 +29,7 @@ pub mod root {
2929
root::Rooted<::std::os::raw::c_int> ) ));
3030
}
3131
#[test]
32-
fn __bindgen_test_layout_Rooted_instantiation_1() {
32+
fn __bindgen_test_layout_Rooted_open0_int_close0_instantiation_1() {
3333
assert_eq!(::std::mem::size_of::<root::Rooted<::std::os::raw::c_int>>()
3434
, 4usize , concat ! (
3535
"Size of template specialization: " , stringify ! (

tests/expectations/tests/libclang-3.9/partial-specialization-and-inheritance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl Clone for Usage {
3434
fn clone(&self) -> Self { *self }
3535
}
3636
#[test]
37-
fn __bindgen_test_layout__bindgen_ty_id_20_instantiation() {
37+
fn __bindgen_test_layout__bindgen_ty_id_20_open0__bindgen_ty_id_18_close0_instantiation() {
3838
assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! (
3939
"Size of template specialization: " , stringify ! (
4040
[u32; 2usize] ) ));

tests/expectations/tests/libclang-4/issue-769-bad-instantiation-test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub mod root {
1919
}
2020
pub type AutoValueVector_Alias = ::std::os::raw::c_int;
2121
#[test]
22-
fn __bindgen_test_layout_Rooted_instantiation() {
22+
fn __bindgen_test_layout_Rooted_open0_int_close0_instantiation() {
2323
assert_eq!(::std::mem::size_of::<root::Rooted<::std::os::raw::c_int>>()
2424
, 4usize , concat ! (
2525
"Size of template specialization: " , stringify ! (
@@ -30,7 +30,7 @@ pub mod root {
3030
root::Rooted<::std::os::raw::c_int> ) ));
3131
}
3232
#[test]
33-
fn __bindgen_test_layout_Rooted_instantiation_1() {
33+
fn __bindgen_test_layout_Rooted_open0_AutoValueVector_Alias_close0_instantiation() {
3434
assert_eq!(::std::mem::size_of::<root::Rooted<root::AutoValueVector_Alias>>()
3535
, 4usize , concat ! (
3636
"Size of template specialization: " , stringify ! (

tests/expectations/tests/libclang-4/partial-specialization-and-inheritance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl Clone for Usage {
3434
fn clone(&self) -> Self { *self }
3535
}
3636
#[test]
37-
fn __bindgen_test_layout__bindgen_ty_id_20_instantiation() {
37+
fn __bindgen_test_layout__bindgen_ty_id_20_open0__bindgen_ty_id_18_close0_instantiation() {
3838
assert_eq!(::std::mem::size_of::<[u32; 2usize]>() , 8usize , concat ! (
3939
"Size of template specialization: " , stringify ! (
4040
[u32; 2usize] ) ));

tests/expectations/tests/libclang-4/type_alias_template_specialized.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl Default for Rooted {
3030
/// <div rustbindgen replaces="MaybeWrapped"></div>
3131
pub type MaybeWrapped<a> = a;
3232
#[test]
33-
fn __bindgen_test_layout_MaybeWrapped_instantiation() {
33+
fn __bindgen_test_layout_MaybeWrapped_open0_int_close0_instantiation() {
3434
assert_eq!(::std::mem::size_of::<MaybeWrapped<::std::os::raw::c_int>>() ,
3535
4usize , concat ! (
3636
"Size of template specialization: " , stringify ! (

tests/expectations/tests/non-type-params.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl Default for UsesArray {
4242
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
4343
}
4444
#[test]
45-
fn __bindgen_test_layout_Array_instantiation() {
45+
fn __bindgen_test_layout_Array_open0_int_close0_instantiation() {
4646
assert_eq!(::std::mem::size_of::<[u32; 4usize]>() , 16usize , concat ! (
4747
"Size of template specialization: " , stringify ! (
4848
[u32; 4usize] ) ));
@@ -51,7 +51,7 @@ fn __bindgen_test_layout_Array_instantiation() {
5151
[u32; 4usize] ) ));
5252
}
5353
#[test]
54-
fn __bindgen_test_layout_Array_instantiation_1() {
54+
fn __bindgen_test_layout_Array_open0_char_close0_instantiation() {
5555
assert_eq!(::std::mem::size_of::<[u8; 16usize]>() , 16usize , concat ! (
5656
"Size of template specialization: " , stringify ! (
5757
[u8; 16usize] ) ));
@@ -60,7 +60,7 @@ fn __bindgen_test_layout_Array_instantiation_1() {
6060
[u8; 16usize] ) ));
6161
}
6262
#[test]
63-
fn __bindgen_test_layout_Array_instantiation_2() {
63+
fn __bindgen_test_layout_Array_open0_bool__close0_instantiation() {
6464
assert_eq!(::std::mem::size_of::<[u8; 8usize]>() , 8usize , concat ! (
6565
"Size of template specialization: " , stringify ! (
6666
[u8; 8usize] ) ));

tests/expectations/tests/opaque-template-instantiation-namespaced.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub mod root {
115115
}
116116
}
117117
#[test]
118-
fn __bindgen_test_layout_Template_instantiation() {
118+
fn __bindgen_test_layout_Template_open0_Foo_close0_instantiation() {
119119
assert_eq!(::std::mem::size_of::<root::zoidberg::Template<root::zoidberg::Foo>>()
120120
, 1usize , concat ! (
121121
"Size of template specialization: " , stringify ! (

tests/expectations/tests/opaque-template-instantiation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl Clone for ContainsOpaqueInstantiation {
6363
fn clone(&self) -> Self { *self }
6464
}
6565
#[test]
66-
fn __bindgen_test_layout_Template_instantiation() {
66+
fn __bindgen_test_layout_Template_open0_char_close0_instantiation() {
6767
assert_eq!(::std::mem::size_of::<Template<::std::os::raw::c_char>>() ,
6868
1usize , concat ! (
6969
"Size of template specialization: " , stringify ! (

tests/expectations/tests/opaque_pointer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl Default for WithOpaquePtr {
6464
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
6565
}
6666
#[test]
67-
fn __bindgen_test_layout_Opaque_instantiation() {
67+
fn __bindgen_test_layout_Opaque_open0_float_close0_instantiation() {
6868
assert_eq!(::std::mem::size_of::<u32>() , 4usize , concat ! (
6969
"Size of template specialization: " , stringify ! ( u32 ) ));
7070
assert_eq!(::std::mem::align_of::<u32>() , 4usize , concat ! (

tests/expectations/tests/replace_use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl Default for Test {
3434
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
3535
}
3636
#[test]
37-
fn __bindgen_test_layout_nsTArray_instantiation() {
37+
fn __bindgen_test_layout_nsTArray_open0_long_close0_instantiation() {
3838
assert_eq!(::std::mem::size_of::<nsTArray>() , 4usize , concat ! (
3939
"Size of template specialization: " , stringify ! ( nsTArray )
4040
));

tests/expectations/tests/size_t_template.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl Default for C {
2828
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
2929
}
3030
#[test]
31-
fn __bindgen_test_layout_Array_instantiation() {
31+
fn __bindgen_test_layout_Array_open0_int_close0_instantiation() {
3232
assert_eq!(::std::mem::size_of::<[u32; 3usize]>() , 12usize , concat ! (
3333
"Size of template specialization: " , stringify ! (
3434
[u32; 3usize] ) ));

tests/expectations/tests/template.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl <T> Default for ReplacedWithoutDestructorFwd<T> {
234234
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
235235
}
236236
#[test]
237-
fn __bindgen_test_layout_Foo_instantiation() {
237+
fn __bindgen_test_layout_Foo_open0_int_int_close0_instantiation() {
238238
assert_eq!(::std::mem::size_of::<Foo<::std::os::raw::c_int>>() , 24usize ,
239239
concat ! (
240240
"Size of template specialization: " , stringify ! (
@@ -245,7 +245,7 @@ fn __bindgen_test_layout_Foo_instantiation() {
245245
Foo<::std::os::raw::c_int> ) ));
246246
}
247247
#[test]
248-
fn __bindgen_test_layout_Foo_instantiation_1() {
248+
fn __bindgen_test_layout_Foo_open0_int_int_close0_instantiation_1() {
249249
assert_eq!(::std::mem::size_of::<Foo<::std::os::raw::c_int>>() , 24usize ,
250250
concat ! (
251251
"Size of template specialization: " , stringify ! (
@@ -256,7 +256,7 @@ fn __bindgen_test_layout_Foo_instantiation_1() {
256256
Foo<::std::os::raw::c_int> ) ));
257257
}
258258
#[test]
259-
fn __bindgen_test_layout_Rooted_instantiation() {
259+
fn __bindgen_test_layout_Rooted_open0__bindgen_ty_id_108_close0_instantiation() {
260260
assert_eq!(::std::mem::size_of::<Rooted<*mut ::std::os::raw::c_void>>() ,
261261
24usize , concat ! (
262262
"Size of template specialization: " , stringify ! (
@@ -267,7 +267,7 @@ fn __bindgen_test_layout_Rooted_instantiation() {
267267
Rooted<*mut ::std::os::raw::c_void> ) ));
268268
}
269269
#[test]
270-
fn __bindgen_test_layout_Rooted_instantiation_1() {
270+
fn __bindgen_test_layout_Rooted_open0__bindgen_ty_id_114_close0_instantiation() {
271271
assert_eq!(::std::mem::size_of::<Rooted<*mut ::std::os::raw::c_void>>() ,
272272
24usize , concat ! (
273273
"Size of template specialization: " , stringify ! (
@@ -278,7 +278,7 @@ fn __bindgen_test_layout_Rooted_instantiation_1() {
278278
Rooted<*mut ::std::os::raw::c_void> ) ));
279279
}
280280
#[test]
281-
fn __bindgen_test_layout_WithDtor_instantiation() {
281+
fn __bindgen_test_layout_WithDtor_open0_int_close0_instantiation() {
282282
assert_eq!(::std::mem::size_of::<WithDtor<::std::os::raw::c_int>>() ,
283283
4usize , concat ! (
284284
"Size of template specialization: " , stringify ! (
@@ -289,7 +289,7 @@ fn __bindgen_test_layout_WithDtor_instantiation() {
289289
WithDtor<::std::os::raw::c_int> ) ));
290290
}
291291
#[test]
292-
fn __bindgen_test_layout_Opaque_instantiation() {
292+
fn __bindgen_test_layout_Opaque_open0_int_close0_instantiation() {
293293
assert_eq!(::std::mem::size_of::<u32>() , 4usize , concat ! (
294294
"Size of template specialization: " , stringify ! ( u32 ) ));
295295
assert_eq!(::std::mem::align_of::<u32>() , 4usize , concat ! (

0 commit comments

Comments
 (0)