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

Put macro x86_intrinsic_impl behind x86 configuration #1431

Conversation

MichaelOwenDyer
Copy link
Member

@MichaelOwenDyer MichaelOwenDyer commented Apr 3, 2024

Summary

The macro x86_intrinsic_impl in src/distributions/integer.rs is only ever used inside this configuration: #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] but the macro itself is declared without that configuration. I just added it, and removed a file-level import which was only used inside the macro.

Motivation

This should resolve the unused code warnings currently occurring on master.

Details

See changes

Copy link
Collaborator

@TheIronBorn TheIronBorn left a comment

Choose a reason for hiding this comment

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

Thanks for fixing my oversight

@MichaelOwenDyer
Copy link
Member Author

I'm gonna go ahead and merge this @dhardy

@MichaelOwenDyer MichaelOwenDyer merged commit 21a1ce1 into rust-random:master Apr 4, 2024
12 checks passed
@MichaelOwenDyer MichaelOwenDyer deleted the put-x86-macro-behind-x86-config branch April 4, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants