Skip to content

Commit

Permalink
Add deprecated aliases for the old {Owned,}StrAsciiExt trait names.
Browse files Browse the repository at this point in the history
The deprecation warning does not seem to be emitted right now, but hopefully that’ll be fixed.
  • Loading branch information
SimonSapin committed Jul 29, 2014
1 parent b86574b commit 235bb3f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libstd/ascii.rs
Expand Up @@ -26,6 +26,13 @@ use string::String;
use to_string::IntoStr;
use vec::Vec;

#[deprecated="this trait has been renamed to `AsciiExt`"]
pub use StrAsciiExt = self::AsciiExt;

#[deprecated="this trait has been renamed to `OwnedAsciiExt`"]
pub use OwnedStrAsciiExt = self::OwnedAsciiExt;


/// Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.
#[deriving(Clone, PartialEq, PartialOrd, Ord, Eq, Hash)]
pub struct Ascii { chr: u8 }
Expand Down

9 comments on commit 235bb3f

@bors
Copy link
Contributor

@bors bors commented on 235bb3f Jul 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at SimonSapin@235bb3f

@bors
Copy link
Contributor

@bors bors commented on 235bb3f Jul 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging SimonSapin/rust/pub-ascii-maps = 235bb3f into auto

@bors
Copy link
Contributor

@bors bors commented on 235bb3f Jul 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SimonSapin/rust/pub-ascii-maps = 235bb3f merged ok, testing candidate = b0e7d14d

@bors
Copy link
Contributor

@bors bors commented on 235bb3f Jul 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at SimonSapin@235bb3f

@bors
Copy link
Contributor

@bors bors commented on 235bb3f Jul 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging SimonSapin/rust/pub-ascii-maps = 235bb3f into auto

@bors
Copy link
Contributor

@bors bors commented on 235bb3f Jul 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SimonSapin/rust/pub-ascii-maps = 235bb3f merged ok, testing candidate = 692077b

@bors
Copy link
Contributor

@bors bors commented on 235bb3f Jul 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 692077b

Please sign in to comment.