about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2014-07-18 16:49:05 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-07-29 23:59:19 +0100
commit235bb3fb1f40dcd7da9b4f8996f137589505de8e (patch)
tree2d481dca78c209b37c3e4c6d89fe8e34e9b3e83e /src/libstd
parentb86574bfff69124397e1a1bdf42a47053beb3aff (diff)
downloadrust-235bb3fb1f40dcd7da9b4f8996f137589505de8e.tar.gz
rust-235bb3fb1f40dcd7da9b4f8996f137589505de8e.zip
Add deprecated aliases for the old {Owned,}StrAsciiExt trait names.
The deprecation warning does not seem to be emitted right now, but hopefully that’ll be fixed.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/ascii.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstd/ascii.rs b/src/libstd/ascii.rs
index d03282a3196..7731cd12ec2 100644
--- a/src/libstd/ascii.rs
+++ b/src/libstd/ascii.rs
@@ -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 }