From 83545d3216369b1bba76f613bd09ab0c4198b63e Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Sat, 18 Jun 2022 09:14:25 +0000 Subject: [PATCH] proc_macro/bridge: remove `#[repr(C)]` from non-ABI-relevant types. --- library/proc_macro/src/bridge/client.rs | 3 --- 1 file changed, 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 @@ extern "C" fn get() -> &'static Self { } // FIXME(eddyb) generate the definition of `HandleStore` in `server.rs`. - #[repr(C)] #[allow(non_snake_case)] pub(super) struct HandleStore { $($oty: handle::OwnedStore,)* @@ -46,7 +45,6 @@ pub(super) fn new(handle_counters: &'static HandleCounters) -> Self { } $( - #[repr(C)] pub(crate) struct $oty { handle: handle::Handle, // Prevent Send and Sync impls. `!Send`/`!Sync` is the usual @@ -131,7 +129,6 @@ fn decode(r: &mut Reader<'_>, s: &mut S) -> Self { )* $( - #[repr(C)] #[derive(Copy, Clone, PartialEq, Eq, Hash)] pub(crate) struct $ity { handle: handle::Handle,