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

lean on stable Ordering repr(i8) #503

Closed
wants to merge 1 commit into from

Conversation

cosmicexplorer
Copy link
Contributor

@jrose-signal
Copy link
Contributor

jrose-signal commented Jan 4, 2023

This is correct, and shorter, but I'm not sure it's better. It is the case that Rust orderings have the raw representations we want here (the ones established by memcmp oh so long ago), but you had to write down a comment to say that, because it's not exposed in the docs (even though it is in the source, and stable). The compiler should absolutely optimize the first into the second anyway, but it doesn't quite today??. I'll file a Rust bug about that.

EDIT: rust-lang/rust#106459

@stale
Copy link

stale bot commented Apr 4, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 4, 2023
@stale
Copy link

stale bot commented Apr 11, 2023

This issue has been closed due to inactivity.

@stale stale bot closed this Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants