about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <eddyb@lyken.rs>2022-06-18 09:14:25 +0000
committerEduard-Mihai Burtescu <eddyb@lyken.rs>2022-06-18 09:14:25 +0000
commit83545d3216369b1bba76f613bd09ab0c4198b63e (patch)
tree5717fb8210616daf2da1d1a0b8f61558b1577f95
parentff86b27e7be1ffff9e00d80beb15560d5f301459 (diff)
downloadrust-83545d3216369b1bba76f613bd09ab0c4198b63e.tar.gz
rust-83545d3216369b1bba76f613bd09ab0c4198b63e.zip
proc_macro/bridge: remove `#[repr(C)]` from non-ABI-relevant types.
-rw-r--r--library/proc_macro/src/bridge/client.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/library/proc_macro/src/bridge/client.rs b/library/proc_macro/src/bridge/client.rs
index c38457ac671..482026d2cf1 100644
--- a/library/proc_macro/src/bridge/client.rs
+++ b/library/proc_macro/src/bridge/client.rs
@@ -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>,)*
@@ -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
@@ -131,7 +129,6 @@ macro_rules! define_handles {
         )*
 
         $(
-            #[repr(C)]
             #[derive(Copy, Clone, PartialEq, Eq, Hash)]
             pub(crate) struct $ity {
                 handle: handle::Handle,