From 235bb3fb1f40dcd7da9b4f8996f137589505de8e Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 18 Jul 2014 16:49:05 +0100 Subject: [PATCH] Add deprecated aliases for the old {Owned,}StrAsciiExt trait names. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The deprecation warning does not seem to be emitted right now, but hopefully that’ll be fixed. --- src/libstd/ascii.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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 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 } -- 2.44.0