Uh oh!
There was an error while loading. Please reload this page.
Deprecate the AsciiExt trait in favor of inherent methods - #49109
Merged
Conversation
SimonSapinforce-pushed
the
deprecate-asciiext
branch
from
March 17, 2018 15:30
fa731b7 to
dbc0c43CompareSimonSapin
commented
Mar 17, 2018
ContributorAuthor
There was a problem hiding this comment.
These methods are removed on str and [u8] in favor of explicit Iterator::all: #39658 (comment)
Member
@bors: r+ |
bors
commented
Mar 19, 2018
Collaborator
📌 Commit dbc0c43 has been approved by |
kennytm
commented
Mar 21, 2018
Member
@bors r- Failed to build stage0-std on Windows. |
The trait and some of its methods are stable and will remain. Some of the newer methods are unstable and can be removed later. Fixesrust-lang#39658
ContributorAuthor
I had turned a trait impl into inherent methods, but forgot to make them public. Additional diff squashed into the commit just now: diff --git a/src/libstd/sys_common/wtf8.rs b/src/libstd/sys_common/wtf8.rs
index 175107bdc4..78b2bb5fe6 100644
--- a/src/libstd/sys_common/wtf8.rs+++ b/src/libstd/sys_common/wtf8.rs@@ -871,21 +871,21 @@ impl Hash for Wtf8 {
}
impl Wtf8 {
- fn is_ascii(&self) -> bool {+ pub fn is_ascii(&self) -> bool {
self.bytes.is_ascii()
}
- fn to_ascii_uppercase(&self) -> Wtf8Buf {+ pub fn to_ascii_uppercase(&self) -> Wtf8Buf {
Wtf8Buf { bytes: self.bytes.to_ascii_uppercase() }
}
- fn to_ascii_lowercase(&self) -> Wtf8Buf {+ pub fn to_ascii_lowercase(&self) -> Wtf8Buf {
Wtf8Buf { bytes: self.bytes.to_ascii_lowercase() }
}
- fn eq_ignore_ascii_case(&self, other: &Wtf8) -> bool {+ pub fn eq_ignore_ascii_case(&self, other: &Wtf8) -> bool {
self.bytes.eq_ignore_ascii_case(&other.bytes)
}
- fn make_ascii_uppercase(&mut self) { self.bytes.make_ascii_uppercase() }- fn make_ascii_lowercase(&mut self) { self.bytes.make_ascii_lowercase() }+ pub fn make_ascii_uppercase(&mut self) { self.bytes.make_ascii_uppercase() }+ pub fn make_ascii_lowercase(&mut self) { self.bytes.make_ascii_lowercase() }
}
#[cfg(test)] |
SimonSapinforce-pushed
the
deprecate-asciiext
branch
from
March 21, 2018 16:54
dbc0c43 to
c09b9f9CompareSimonSapin
commented
Mar 21, 2018
ContributorAuthor
@bors: r=alexcrichton |
bors
commented
Mar 21, 2018
Collaborator
📌 Commit c09b9f9 has been approved by |
bors
commented
Mar 21, 2018
Collaborator
🌲 The tree is currently closed for pull requests below priority 30, this pull request will be tested once the tree is reopened |
kennytm added a commit
to kennytm/rust
that referenced
this pull request
Mar 21, 2018
…excrichton Deprecate the AsciiExt trait in favor of inherent methods The trait and some of its methods are stable and will remain. Some of the newer methods are unstable and can be removed later. Fixesrust-lang#39658
kennytm added a commit
to kennytm/rust
that referenced
this pull request
Mar 22, 2018
…excrichton Deprecate the AsciiExt trait in favor of inherent methods The trait and some of its methods are stable and will remain. Some of the newer methods are unstable and can be removed later. Fixesrust-lang#39658
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The trait and some of its methods are stable and will remain.
Some of the newer methods are unstable and can be removed later.
Fixes#39658