Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fmt
  • Loading branch information
ascjones committed Jul 16, 2021
commit 29e6a58e95374f0f85f87cf2aba79c131a96dd2c
10 changes: 2 additions & 8 deletions test_suite/tests/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ fn phantom_data_field_is_erased() {
let ty = Type::builder()
.path(Path::new("P", "derive"))
.type_params(named_type_params!((T, bool)))
.composite(
Fields::named()
.field(|f| f.ty::<u8>().name("a").type_name("u8"))
);
.composite(Fields::named().field(|f| f.ty::<u8>().name("a").type_name("u8")));

assert_type!(P<bool>, ty);
}
Expand All @@ -125,10 +122,7 @@ fn phantom_data_tuple_struct_field_is_erased() {
let ty = Type::builder()
.path(Path::new("P", "derive"))
.type_params(named_type_params!((T, bool)))
.composite(
Fields::unnamed()
.field(|f| f.ty::<u8>().type_name("u8"))
);
.composite(Fields::unnamed().field(|f| f.ty::<u8>().type_name("u8")));

assert_type!(P<bool>, ty);
}
Expand Down