Uh oh!
There was an error while loading. Please reload this page.
Move slice::check_range to RangeBounds - #76885
Conversation
pickfire
left a comment
There was a problem hiding this comment.
Naming for_length looks non-intuitive but the movement looks good.
dylni
commented
Sep 18, 2020
I don't like the name either. What do you think of |
Since this is doing bound checking, how about naming it |
dylni
commented
Sep 18, 2020
|
dylni
commented
Sep 18, 2020
@rust-highfive missed this PR, so randomly assigning to a libs member. |
joshtriplett
commented
Sep 21, 2020
@dylni I'm not a libs member. |
dylni
commented
Sep 21, 2020
Sorry @joshtriplett. I was looking at this file. r? @KodrAus who reviewed the initial PR. |
joshtriplett
commented
Sep 24, 2020
@dylni Interesting, thanks for pointing me at that. :) |
dylni
commented
Sep 25, 2020
Not a problem. :) It's good to know I'm looking in the right place |
KodrAus
commented
Oct 5, 2020
bors
commented
Oct 5, 2020
📌 Commit f055b0b has been approved by |
dylni
commented
Oct 5, 2020
bors
commented
Oct 5, 2020
⌛ Testing commit f055b0b with merge a19dde735bd9a7faeb838e2e786d8b5e884ddff1... |
bors
commented
Oct 5, 2020
💔 Test failed - checks-actions |
dylni
commented
Oct 5, 2020
@bors retry |
bors
commented
Oct 5, 2020
@dylni: 🔑 Insufficient privileges: not in try users |
joshtriplett
commented
Oct 5, 2020
@bors retry |
bors
commented
Oct 6, 2020
⌛ Testing commit f055b0b with merge d04e136f6e752db206b94dfe266a9a5eeeb42424... |
bors
commented
Oct 6, 2020
💔 Test failed - checks-actions |
dylni
commented
Oct 6, 2020
The failure still doesn't look related to this PR. |
dylni
commented
Oct 8, 2020
@joshtriplett Can you retry bors again? |
jyn514
commented
Oct 18, 2020
@bors retry |
bors
commented
Oct 18, 2020
bors
commented
Oct 18, 2020
☀️ Test successful - checks-actions, checks-azure |
In 1.49 the slice::check_range unstable funciton got moved to RangeBounds::assert_len. rust-lang/rust#76885
Since this method doesn't take a slice anymore (#76662), it makes more sense to define it on
RangeBounds.Questions:
assert_lenorassert_length?