Skip to content

correct reference wrt shifts #23662

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

Merged
merged 1 commit into from
Mar 25, 2015
Merged

correct reference wrt shifts #23662

merged 1 commit into from
Mar 25, 2015

Conversation

steveklabnik
Copy link
Member

I assume since both shifts say the same thing, I should fix both of them, but then I realized I don't strictly know about left shift.

Fixes #23421

r? @pnkfelix

@@ -1263,9 +1263,6 @@ be undesired.
* Exiting without calling destructors
* Sending signals
* Accessing/modifying the file system
* Unsigned integer overflow (well-defined as wrapping)
Copy link
Member

Choose a reason for hiding this comment

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

Hmm. You may actually want to leave these two bullet points in: We are continuing to use well-defined fallbacks when one's code is compiled without the overflow checking turned on, as discussed in the Arithmetic Overflow RFC; its the part where we say what the "defined result" is for each operation of interest.

Copy link
Member Author

Choose a reason for hiding this comment

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

roger. Since that's conditional, I wasn't sure.

@pnkfelix
Copy link
Member

@bors r+ f2e0810 rollup

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 24, 2015
I assume since both shifts say the same thing, I should fix both of them, but then I realized I don't strictly know about left shift.

Fixes rust-lang#23421

r? @pnkfelix
@bors bors merged commit f2e0810 into rust-lang:master Mar 25, 2015
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.

Inaccuracies in the reference about bitshifts and overflows
3 participants