Skip to content

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
Contributor

@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
@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.

2 participants