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

std: add a twos-complement fn back to ints and uints #8226

Closed
wants to merge 1 commit into from

Conversation

erickt
Copy link
Contributor

@erickt erickt commented Aug 2, 2013

We lost int::compl back in 1aae28a. This patch brings it back by adding a compl method to std::num::Bitwise.

We lost int::compl back in 1aae28. This patch brings it back by
adding a `compl` method to std::num::Bitwise.
@erickt erickt closed this Aug 2, 2013
@erickt
Copy link
Contributor Author

erickt commented Aug 2, 2013

It turns out our ! operator is a bitwise NOT, not a logical NOT like I thought, so we don't need this PR.

flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 13, 2022
`manual_memcpy` fix

fixes rust-lang#8160

Ideally this would work with `VecDeque`, but the current interface is unsuitable for it. At a minimum something like `range_as_slices` would be needed.

changelog: Don't lint `manual_memcpy` on `VecDeque`
changelog: Suggest `copy_from_slice` for `manual_memcpy` when applicable
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.

1 participant