Skip to content

Commit 2b646bd

Browse files
committed
Auto merge of rust-lang#98224 - eddyb:proc-macro-spurious-repr, r=bjorn3
proc_macro/bridge: remove `#[repr(C)]` from non-ABI-relevant types. Not sure how this happened, maybe some of these were passed through the bridge a long time ago? r? `@bjorn3`
2 parents 68d0b29 + 83545d3 commit 2b646bd

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)