Skip to content

Commit

Permalink
Auto merge of rust-lang#98224 - eddyb:proc-macro-spurious-repr, r=bjorn3
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
bors committed Jun 19, 2022
2 parents 68d0b29 + 83545d3 commit 2b646bd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions library/proc_macro/src/bridge/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ macro_rules! define_handles {
}
// FIXME(eddyb) generate the definition of `HandleStore` in `server.rs`.
#[repr(C)]
#[allow(non_snake_case)]
pub(super) struct HandleStore<S: server::Types> {
$($oty: handle::OwnedStore<S::$oty>,)*
Expand All @@ -46,7 +45,6 @@ macro_rules! define_handles {
}

$(
#[repr(C)]
pub(crate) struct $oty {
handle: handle::Handle,
// Prevent Send and Sync impls. `!Send`/`!Sync` is the usual
Expand Down Expand Up @@ -131,7 +129,6 @@ macro_rules! define_handles {
)*

$(
#[repr(C)]
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
pub(crate) struct $ity {
handle: handle::Handle,
Expand Down

0 comments on commit 2b646bd

Please sign in to comment.