diff options
author | Jimmy Miller <[email protected]> | 2022-10-13 18:20:04 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-13 18:20:04 -0400 |
commit | 3c0b4ef1a2a972d5b0b723b82538fc8f40d85f32 (patch) | |
tree | 039f2b1363f87f278bf6c49a2d1958ecd581371e /yjit/src/utils.rs | |
parent | 93a87f4963703a709bf974c48f76a5503f31f53f (diff) |
fixes more clippy warnings (#6543)
* fixes more clippy warnings
* Fix x86 c_callable to have doc_strings
Notes
Notes:
Merged-By: maximecb <[email protected]>
Diffstat (limited to 'yjit/src/utils.rs')
-rw-r--r-- | yjit/src/utils.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/yjit/src/utils.rs b/yjit/src/utils.rs index bea57e4fc2..cabebb7dcc 100644 --- a/yjit/src/utils.rs +++ b/yjit/src/utils.rs @@ -122,12 +122,20 @@ yjit_print_iseq(const rb_iseq_t *iseq) #[cfg(target_arch = "aarch64")] macro_rules! c_callable { - (fn $f:ident $args:tt $(-> $ret:ty)? $body:block) => { extern "C" fn $f $args $(-> $ret)? $body }; + ($(#[$outer:meta])* + fn $f:ident $args:tt $(-> $ret:ty)? $body:block) => { + $(#[$outer])* + extern "C" fn $f $args $(-> $ret)? $body + }; } #[cfg(target_arch = "x86_64")] macro_rules! c_callable { - (fn $f:ident $args:tt $(-> $ret:ty)? $body:block) => { extern "sysv64" fn $f $args $(-> $ret)? $body }; + ($(#[$outer:meta])* + fn $f:ident $args:tt $(-> $ret:ty)? $body:block) => { + $(#[$outer])* + extern "sysv64" fn $f $args $(-> $ret)? $body + }; } pub(crate) use c_callable; |