Update expect messages for library/alloc/src/vec/mod.rs - #159862
Conversation
|
Thanks for the pull request, and welcome! The Rust Project is excited to review your changes, and you should hear from @JohnTitor (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
||
| #[test] | ||
| #[should_panic = "vec len overflow"] | ||
| #[should_panic = "the product of vec len and N shouldn't overflow"] |
There was a problem hiding this comment.
surely since this is a should_panic this should read should overflow?
usize::MAX * 2 certainly seems like it would ^^
There was a problem hiding this comment.
oops, my bad, fixing it now Orz
There was a problem hiding this comment.
Nah, the message has to say "shouldn't". The test just ensures a panic case.
There was a problem hiding this comment.
Nah, the message has to say "shouldn't". The test just ensures a panic case.
I will update it again when I get my computer 👍
|
Reminder, once the PR becomes ready for a review, use |
|
@rustbot ready |
|
@bors squash |
This comment has been minimized.
This comment has been minimized.
* Update expect messages for library/alloc/src/vec/mod.rs * Update expect messages for library/alloctests/tests/vec.rs * Update expect messages for library/alloc/src/vec/mod.rs and library/alloctests/tests/vec.rs * Revert "Update expect messages for library/alloc/src/vec/mod.rs and library/alloctests/tests/vec.rs" This reverts commit 009fa6f.
|
🔨 4 commits were squashed into 96aef28. |
75a2687 to
96aef28
Compare
…uwer Rollup of 5 pull requests Successful merges: - #160203 (`Iterator::{min,max}(_by_key)` should use overridden `min`/`max`/`lt`) - #159862 (Update expect messages for library/alloc/src/vec/mod.rs) - #160719 (Improve OpenOptions append+truncate error message) - #160996 (Forward all array `PartialOrd` to slices) - #161102 (Explicitly pass run_make_support rlib/rmeta paths to compiletest)
Related issue: #159751
Updated some expect messages for
library/alloc/src/vec/mod.rs