-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Vec: looks like is_empty and len are not needed #26980
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
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Does my change break anything? |
No this seems totally legit (although it probably forced the optimizer do a bit more work on these methods...). |
@bors r+ |
📌 Commit 42b46d2 has been approved by |
I will break code using
|
Woah! I didn't realize we had implemented that! On Sat, Jul 11, 2015 at 6:47 PM, Vadim Petrochenkov <
|
@bors r- Want to think about this then On Sat, Jul 11, 2015 at 7:00 PM, Alexis Beingessner <a.beingessner@gmail.com
|
Seems we just cannot do this. |
Does this mean the test suite is incomplete @petrochenkov? |
@tshepang The test suite is always incomplete. There are numerous ways to cause breaking changes in Rust without tripping the test suite. That's why PRs are manually reviewed and brson does crater runs on occasion to see if anything on crates.io broke. |
You can’t just remove these methods without deprecating them either. I’d propose deprecation of these two functions as an RFC. |
This super isn't worth it. They're two stupid little functions that have 0 maintenance burden. Thanks anyway, @tshepang! |
The slice module already implements these methods