Skip to content

Commit 83545d3

Browse files
committed
proc_macro/bridge: remove #[repr(C)] from non-ABI-relevant types.
1 parent ff86b27 commit 83545d3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

library/proc_macro/src/bridge/client.rs

-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ macro_rules! define_handles {
2929
}
3030

3131
// FIXME(eddyb) generate the definition of `HandleStore` in `server.rs`.
32-
#[repr(C)]
3332
#[allow(non_snake_case)]
3433
pub(super) struct HandleStore<S: server::Types> {
3534
$($oty: handle::OwnedStore<S::$oty>,)*
@@ -46,7 +45,6 @@ macro_rules! define_handles {
4645
}
4746

4847
$(
49-
#[repr(C)]
5048
pub(crate) struct $oty {
5149
handle: handle::Handle,
5250
// Prevent Send and Sync impls. `!Send`/`!Sync` is the usual
@@ -131,7 +129,6 @@ macro_rules! define_handles {
131129
)*
132130

133131
$(
134-
#[repr(C)]
135132
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
136133
pub(crate) struct $ity {
137134
handle: handle::Handle,

0 commit comments

Comments
 (0)