Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes more clippy warnings #6543

Merged
merged 2 commits into from Oct 13, 2022
Merged

Conversation

jimmyhmiller
Copy link
Contributor

No description provided.

@matzbot matzbot requested a review from a team October 13, 2022 19:05
@jimmyhmiller
Copy link
Contributor Author

jimmyhmiller commented Oct 13, 2022

Messed up the macro change. Going to revert that one. It was the most iffy of them all.

Edit: Actually just missed the x86 version. Fixing

@@ -96,6 +96,7 @@ pub type size_t = u64;
pub type RedefinitionFlag = u32;

#[allow(dead_code)]
#[allow(clippy::useless_transmute)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

@@ -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])*
Copy link
Contributor

@maximecb maximecb Oct 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's outer:meta ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc comments outside of functions like /// are actually sugar for meta attributes like #[doc="..."] and this is how you'd match against them.

Copy link
Contributor

@maximecb maximecb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@maximecb maximecb merged commit 3c0b4ef into ruby:master Oct 13, 2022
@maximecb maximecb deleted the fix-more-clippy-issues branch October 13, 2022 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants