Skip to content

Conversation

joshtriplett
Copy link
Contributor

@joshtriplett joshtriplett commented Jun 2, 2022

float_product and float_sum had unused rules, because they weren't
successfully using their second branch, and weren't successfully
defining wrapping types.

That then led to the discovery that those types can't be defined,
because std doesn't actually define any operations on Wrapping<f32> or
Wrapping<f64>. So, drop those portions of the float macros.

Fix that, and in the process, unify the integer and float macros.

@joshtriplett joshtriplett force-pushed the fix-ci branch 4 times, most recently from 3963db1 to e7f7d9e Compare June 2, 2022 03:47
float_product and float_sum had unused rules, because they weren't
successfully using their second branch, and weren't successfully
defining wrapping types.

That then led to the discovery that those types *can't* be defined,
because std doesn't actually define any operations on `Wrapping<f32>` or
`Wrapping<f64>`. So, drop those portions of the float macros.

Fix that, and in the process, unify the integer and float macros.
Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

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

Fantastic, thank you!

@yoshuawuyts yoshuawuyts merged commit d15a221 into async-rs:master Jun 2, 2022
@joshtriplett joshtriplett deleted the fix-ci branch June 2, 2022 15:43
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