]> git.lizzy.rs Git - rust.git/commitdiff
Add deprecated aliases for the old {Owned,}StrAsciiExt trait names.
authorSimon Sapin <simon.sapin@exyr.org>
Fri, 18 Jul 2014 15:49:05 +0000 (16:49 +0100)
committerSimon Sapin <simon.sapin@exyr.org>
Tue, 29 Jul 2014 22:59:19 +0000 (23:59 +0100)
The deprecation warning does not seem to be emitted right now, but hopefully that’ll be fixed.

src/libstd/ascii.rs

index d03282a3196e5c9d4a3a2f0f62f0477ab43602ed..7731cd12ec28f8c9dde42df997982a5ea17d49bf 100644 (file)
 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 }