diff options
Diffstat (limited to 'syntax/mangle.rs')
-rw-r--r-- | syntax/mangle.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/syntax/mangle.rs b/syntax/mangle.rs index 287b4434..6f019657 100644 --- a/syntax/mangle.rs +++ b/syntax/mangle.rs @@ -84,7 +84,7 @@ macro_rules! join { }; } -pub fn extern_fn(efn: &ExternFn, types: &Types) -> Symbol { +pub(crate) fn extern_fn(efn: &ExternFn, types: &Types) -> Symbol { match &efn.receiver { Some(receiver) => { let receiver_ident = types.resolve(&receiver.ty); @@ -99,7 +99,7 @@ pub fn extern_fn(efn: &ExternFn, types: &Types) -> Symbol { } } -pub fn operator(receiver: &Pair, operator: &'static str) -> Symbol { +pub(crate) fn operator(receiver: &Pair, operator: &'static str) -> Symbol { join!( receiver.namespace, CXXBRIDGE, @@ -110,11 +110,11 @@ pub fn operator(receiver: &Pair, operator: &'static str) -> Symbol { } // The C half of a function pointer trampoline. -pub fn c_trampoline(efn: &ExternFn, var: &Pair, types: &Types) -> Symbol { +pub(crate) fn c_trampoline(efn: &ExternFn, var: &Pair, types: &Types) -> Symbol { join!(extern_fn(efn, types), var.rust, 0) } // The Rust half of a function pointer trampoline. -pub fn r_trampoline(efn: &ExternFn, var: &Pair, types: &Types) -> Symbol { +pub(crate) fn r_trampoline(efn: &ExternFn, var: &Pair, types: &Types) -> Symbol { join!(extern_fn(efn, types), var.rust, 1) } |