From fa4c2976cfc087978eff91130c9973fdae5dd5bb Mon Sep 17 00:00:00 2001 From: SirHall <28499210+SirHall@users.noreply.github.com> Date: Sat, 4 May 2024 16:06:58 +1000 Subject: [PATCH 1/2] Make 'apply_permutation' function public --- soa-derive-internal/src/slice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soa-derive-internal/src/slice.rs b/soa-derive-internal/src/slice.rs index 832f163..7801d5f 100644 --- a/soa-derive-internal/src/slice.rs +++ b/soa-derive-internal/src/slice.rs @@ -601,7 +601,7 @@ pub fn derive_mut(input: &Input) -> TokenStream { } #[doc(hidden)] - fn apply_permutation(&mut self, permutation: &mut soa_derive::Permutation) { + pub fn apply_permutation(&mut self, permutation: &mut soa_derive::Permutation) { #( #apply_permutation; )* } From b169fbc041ade55a5d5d03b13e116531bb6a9749 Mon Sep 17 00:00:00 2001 From: SirHall <28499210+SirHall@users.noreply.github.com> Date: Thu, 9 May 2024 08:02:36 +1000 Subject: [PATCH 2/2] Update soa-derive-internal/src/slice.rs with a more unique name Co-authored-by: Guillaume Fraux --- soa-derive-internal/src/slice.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/soa-derive-internal/src/slice.rs b/soa-derive-internal/src/slice.rs index 7801d5f..6d48b12 100644 --- a/soa-derive-internal/src/slice.rs +++ b/soa-derive-internal/src/slice.rs @@ -601,7 +601,9 @@ pub fn derive_mut(input: &Input) -> TokenStream { } #[doc(hidden)] - pub fn apply_permutation(&mut self, permutation: &mut soa_derive::Permutation) { + /// this is `pub` due to the issue in https://github.com/lumol-org/soa-derive/pull/65 + /// but should not be used directly + pub fn __private_apply_permutation(&mut self, permutation: &mut soa_derive::Permutation) { #( #apply_permutation; )* }