-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Remove FullRange from the prelude and rename to RangeFull #21717
Conversation
/// Any string that can be represented as a slice. | ||
#[cfg(not(stage0))] | ||
#[stable] | ||
pub trait StrExt: Index<RangeFull, Output = str> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of duplicating, could this do something like:
#[cfg(stage0)]
use core::ops::FullRange as RangeFull;
#[cfg(not(stage0))]
use core::ops::RangeFull;
Looks great to me! I'd like to get @aturon's second opinion on the stability of |
cdea9d9
to
f7b0fca
Compare
@bors: r+ f7b0fca |
Needs a rebase |
…lude Closes rust-lang#21263 [breaking-change] If you are using `core::ops::FullRange` you should change to using `core::ops::RangeFull`
f7b0fca
to
023d49e
Compare
@bors r=acrichto f7b0fcaf2ca6a819b3c16c03935d9c9b5e4d8e82 |
🙀 You have the wrong number! Please try again with |
Lol Bors. |
r? @alexcrichton