Skip to content
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

Update std::ascii::ASCIIExt deprecation notes #52156

Merged
merged 1 commit into from
Jul 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 30 additions & 10 deletions src/libstd/ascii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ pub trait AsciiExt {
/// # Note
///
/// This method will be deprecated in favor of the identically-named
/// inherent methods on `u8`, `char`, `[u8]` and `str`.
/// inherent methods on `u8` and `char`.
/// For `[u8]` use `.iter().all(u8::is_ascii_alphabetic)`.
/// For `str` use `.bytes().all(u8::is_ascii_alphabetic)`.
#[unstable(feature = "ascii_ctype", issue = "39658")]
#[rustc_deprecated(since = "1.26.0", reason = "use inherent methods instead")]
fn is_ascii_alphabetic(&self) -> bool { unimplemented!(); }
Expand All @@ -176,7 +178,9 @@ pub trait AsciiExt {
/// # Note
///
/// This method will be deprecated in favor of the identically-named
/// inherent methods on `u8`, `char`, `[u8]` and `str`.
/// inherent methods on `u8` and `char`.
/// For `[u8]` use `.iter().all(u8::is_ascii_uppercase)`.
/// For `str` use `.bytes().all(u8::is_ascii_uppercase)`.
#[unstable(feature = "ascii_ctype", issue = "39658")]
#[rustc_deprecated(since = "1.26.0", reason = "use inherent methods instead")]
fn is_ascii_uppercase(&self) -> bool { unimplemented!(); }
Expand All @@ -189,7 +193,9 @@ pub trait AsciiExt {
/// # Note
///
/// This method will be deprecated in favor of the identically-named
/// inherent methods on `u8`, `char`, `[u8]` and `str`.
/// inherent methods on `u8` and `char`.
/// For `[u8]` use `.iter().all(u8::is_ascii_lowercase)`.
/// For `str` use `.bytes().all(u8::is_ascii_lowercase)`.
#[unstable(feature = "ascii_ctype", issue = "39658")]
#[rustc_deprecated(since = "1.26.0", reason = "use inherent methods instead")]
fn is_ascii_lowercase(&self) -> bool { unimplemented!(); }
Expand All @@ -203,7 +209,9 @@ pub trait AsciiExt {
/// # Note
///
/// This method will be deprecated in favor of the identically-named
/// inherent methods on `u8`, `char`, `[u8]` and `str`.
/// inherent methods on `u8` and `char`.
/// For `[u8]` use `.iter().all(u8::is_ascii_alphanumeric)`.
/// For `str` use `.bytes().all(u8::is_ascii_alphanumeric)`.
#[unstable(feature = "ascii_ctype", issue = "39658")]
#[rustc_deprecated(since = "1.26.0", reason = "use inherent methods instead")]
fn is_ascii_alphanumeric(&self) -> bool { unimplemented!(); }
Expand All @@ -216,7 +224,9 @@ pub trait AsciiExt {
/// # Note
///
/// This method will be deprecated in favor of the identically-named
/// inherent methods on `u8`, `char`, `[u8]` and `str`.
/// inherent methods on `u8` and `char`.
/// For `[u8]` use `.iter().all(u8::is_ascii_digit)`.
/// For `str` use `.bytes().all(u8::is_ascii_digit)`.
#[unstable(feature = "ascii_ctype", issue = "39658")]
#[rustc_deprecated(since = "1.26.0", reason = "use inherent methods instead")]
fn is_ascii_digit(&self) -> bool { unimplemented!(); }
Expand All @@ -230,7 +240,9 @@ pub trait AsciiExt {
/// # Note
///
/// This method will be deprecated in favor of the identically-named
/// inherent methods on `u8`, `char`, `[u8]` and `str`.
/// inherent methods on `u8` and `char`.
/// For `[u8]` use `.iter().all(u8::is_ascii_hexdigit)`.
/// For `str` use `.bytes().all(u8::is_ascii_hexdigit)`.
#[unstable(feature = "ascii_ctype", issue = "39658")]
#[rustc_deprecated(since = "1.26.0", reason = "use inherent methods instead")]
fn is_ascii_hexdigit(&self) -> bool { unimplemented!(); }
Expand All @@ -248,7 +260,9 @@ pub trait AsciiExt {
/// # Note
///
/// This method will be deprecated in favor of the identically-named
/// inherent methods on `u8`, `char`, `[u8]` and `str`.
/// inherent methods on `u8` and `char`.
/// For `[u8]` use `.iter().all(u8::is_ascii_punctuation)`.
/// For `str` use `.bytes().all(u8::is_ascii_punctuation)`.
#[unstable(feature = "ascii_ctype", issue = "39658")]
#[rustc_deprecated(since = "1.26.0", reason = "use inherent methods instead")]
fn is_ascii_punctuation(&self) -> bool { unimplemented!(); }
Expand All @@ -261,7 +275,9 @@ pub trait AsciiExt {
/// # Note
///
/// This method will be deprecated in favor of the identically-named
/// inherent methods on `u8`, `char`, `[u8]` and `str`.
/// inherent methods on `u8` and `char`.
/// For `[u8]` use `.iter().all(u8::is_ascii_graphic)`.
/// For `str` use `.bytes().all(u8::is_ascii_graphic)`.
#[unstable(feature = "ascii_ctype", issue = "39658")]
#[rustc_deprecated(since = "1.26.0", reason = "use inherent methods instead")]
fn is_ascii_graphic(&self) -> bool { unimplemented!(); }
Expand Down Expand Up @@ -291,7 +307,9 @@ pub trait AsciiExt {
/// # Note
///
/// This method will be deprecated in favor of the identically-named
/// inherent methods on `u8`, `char`, `[u8]` and `str`.
/// inherent methods on `u8` and `char`.
/// For `[u8]` use `.iter().all(u8::is_ascii_whitespace)`.
/// For `str` use `.bytes().all(u8::is_ascii_whitespace)`.
#[unstable(feature = "ascii_ctype", issue = "39658")]
#[rustc_deprecated(since = "1.26.0", reason = "use inherent methods instead")]
fn is_ascii_whitespace(&self) -> bool { unimplemented!(); }
Expand All @@ -304,7 +322,9 @@ pub trait AsciiExt {
/// # Note
///
/// This method will be deprecated in favor of the identically-named
/// inherent methods on `u8`, `char`, `[u8]` and `str`.
/// inherent methods on `u8` and `char`.
/// For `[u8]` use `.iter().all(u8::is_ascii_control)`.
/// For `str` use `.bytes().all(u8::is_ascii_control)`.
#[unstable(feature = "ascii_ctype", issue = "39658")]
#[rustc_deprecated(since = "1.26.0", reason = "use inherent methods instead")]
fn is_ascii_control(&self) -> bool { unimplemented!(); }
Expand Down