Skip to content

properly document panics in div_euclid and rem_euclid - #65496

Merged
bors merged 1 commit into
rust-lang:masterfrom
tspiteri:euc-div-panic
Oct 19, 2019
Merged

properly document panics in div_euclid and rem_euclid#65496
bors merged 1 commit into
rust-lang:masterfrom
tspiteri:euc-div-panic

Conversation

@tspiteri

Copy link
Copy Markdown
Contributor

For signed numbers, document that div_euclid and rem_euclid panic not just when rhs is 0, but also when the division overflows.

For unsigned numbers, document that div_euclid and rem_euclid panic when rhs is 0.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 17, 2019
@KodrAus

Copy link
Copy Markdown
Contributor

Thanks @tspiteri!

@bors r+ rollup

@bors

bors commented Oct 17, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 83e97c6 has been approved by KodrAus

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 17, 2019
Centril added a commit to Centril/rust that referenced this pull request Oct 17, 2019
properly document panics in div_euclid and rem_euclid
For signed numbers, document that `div_euclid` and `rem_euclid` panic not just when `rhs` is 0, but also when the division overflows.
For unsigned numbers, document that `div_euclid` and `rem_euclid` panic when `rhs` is 0.
@CentrilCentril mentioned this pull request Oct 17, 2019
Centril added a commit to Centril/rust that referenced this pull request Oct 18, 2019
properly document panics in div_euclid and rem_euclid
For signed numbers, document that `div_euclid` and `rem_euclid` panic not just when `rhs` is 0, but also when the division overflows.
For unsigned numbers, document that `div_euclid` and `rem_euclid` panic when `rhs` is 0.
@CentrilCentril mentioned this pull request Oct 18, 2019
tmandry added a commit to tmandry/rust that referenced this pull request Oct 18, 2019
properly document panics in div_euclid and rem_euclid
For signed numbers, document that `div_euclid` and `rem_euclid` panic not just when `rhs` is 0, but also when the division overflows.
For unsigned numbers, document that `div_euclid` and `rem_euclid` panic when `rhs` is 0.
@tmandrytmandry mentioned this pull request Oct 18, 2019
tmandry added a commit to tmandry/rust that referenced this pull request Oct 18, 2019
properly document panics in div_euclid and rem_euclid
For signed numbers, document that `div_euclid` and `rem_euclid` panic not just when `rhs` is 0, but also when the division overflows.
For unsigned numbers, document that `div_euclid` and `rem_euclid` panic when `rhs` is 0.
@tmandrytmandry mentioned this pull request Oct 18, 2019
Centril added a commit to Centril/rust that referenced this pull request Oct 18, 2019
properly document panics in div_euclid and rem_euclid
For signed numbers, document that `div_euclid` and `rem_euclid` panic not just when `rhs` is 0, but also when the division overflows.
For unsigned numbers, document that `div_euclid` and `rem_euclid` panic when `rhs` is 0.
@CentrilCentril mentioned this pull request Oct 18, 2019
tmandry added a commit to tmandry/rust that referenced this pull request Oct 18, 2019
properly document panics in div_euclid and rem_euclid
For signed numbers, document that `div_euclid` and `rem_euclid` panic not just when `rhs` is 0, but also when the division overflows.
For unsigned numbers, document that `div_euclid` and `rem_euclid` panic when `rhs` is 0.
@tmandrytmandry mentioned this pull request Oct 18, 2019
bors added a commit that referenced this pull request Oct 18, 2019
Rollup of 17 pull requests
Successful merges:
- #65016 (Always inline `mem::{size_of,align_of}` in debug builds)
- #65197 (Prepare `MutVisitor`s to handle interned projections)
- #65201 (Disable Go and OCaml bindings when building LLVM)
- #65364 (Collect occurrences of empty blocks for mismatched braces diagnostic)
- #65417 (Add more coherence tests)
- #65434 (Add long error explanation for E0577)
- #65455 (Avoid unnecessary `TokenTree` to `TokenStream` conversions)
- #65472 (Use a sharded dep node to dep node index map)
- #65480 (Speed up `LexicalResolve::expansion()`)
- #65496 (properly document panics in div_euclid and rem_euclid)
- #65508 (add option to ping llvm ice-breakers to triagebot)
- #65511 (save-analysis: Nest tables when processing impl block definitions)
- #65513 (reorder fmt docs for more clarity)
- #65532 (doc: make BitSet intro more short)
- #65540 (show up some extra info when t!() fails)
- #65549 (Fix left/right shift typo in wrapping rotate docs)
- #65552 (Clarify diagnostics when using `~` as a unary op)
Failed merges:
- #65471 (Add long error explanation for E0578)
r? @ghost
tmandry added a commit to tmandry/rust that referenced this pull request Oct 18, 2019
properly document panics in div_euclid and rem_euclid
For signed numbers, document that `div_euclid` and `rem_euclid` panic not just when `rhs` is 0, but also when the division overflows.
For unsigned numbers, document that `div_euclid` and `rem_euclid` panic when `rhs` is 0.
@tmandrytmandry mentioned this pull request Oct 18, 2019
bors added a commit that referenced this pull request Oct 19, 2019
Rollup of 19 pull requests
Successful merges:
- #65016 (Always inline `mem::{size_of,align_of}` in debug builds)
- #65197 (Prepare `MutVisitor`s to handle interned projections)
- #65201 (Disable Go and OCaml bindings when building LLVM)
- #65334 (Add long error explanation for E0575)
- #65364 (Collect occurrences of empty blocks for mismatched braces diagnostic)
- #65455 (Avoid unnecessary `TokenTree` to `TokenStream` conversions)
- #65472 (Use a sharded dep node to dep node index map)
- #65480 (Speed up `LexicalResolve::expansion()`)
- #65493 (Add long error explanation for E0584)
- #65496 (properly document panics in div_euclid and rem_euclid)
- #65498 (Plugins deprecation: don’t suggest simply removing the attribute)
- #65508 (add option to ping llvm ice-breakers to triagebot)
- #65511 (save-analysis: Nest tables when processing impl block definitions)
- #65513 (reorder fmt docs for more clarity)
- #65532 (doc: make BitSet intro more short)
- #65535 (rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole struct.)
- #65540 (show up some extra info when t!() fails)
- #65549 (Fix left/right shift typo in wrapping rotate docs)
- #65552 (Clarify diagnostics when using `~` as a unary op)
Failed merges:
- #65390 (Add long error explanation for E0576)
- #65434 (Add long error explanation for E0577)
- #65471 (Add long error explanation for E0578)
r? @ghost
@bors
bors merged commit 83e97c6 into rust-lang:masterOct 19, 2019
@tspiteri
tspiteri deleted the euc-div-panic branch October 21, 2019 14:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@tspiteri@rust-highfive@KodrAus@bors@alexcrichton