From 94ca8a361026d1a622a961e8dc8cacc331ed1ac3 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 12 Jan 2015 18:40:19 -0800 Subject: Add 'feature' and 'since' to stability attributes --- src/libgetopts/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libgetopts') diff --git a/src/libgetopts/lib.rs b/src/libgetopts/lib.rs index c2114d4c6df..1f069b5c94c 100644 --- a/src/libgetopts/lib.rs +++ b/src/libgetopts/lib.rs @@ -78,7 +78,8 @@ //! ``` #![crate_name = "getopts"] -#![unstable = "use the crates.io `getopts` library instead"] +#![unstable(feature = "unnamed_feature", since = "1.0.0", + reason = "use the crates.io `getopts` library instead")] #![staged_api] #![crate_type = "rlib"] #![crate_type = "dylib"] @@ -538,7 +539,8 @@ pub fn opt(short_name: &str, impl Fail { /// Convert a `Fail` enum into an error string. - #[deprecated="use `fmt::String` (`{}` format specifier)"] + #[deprecated(feature = "oldstuff", since = "1.0.0", + reason = "use `fmt::String` (`{}` format specifier)")] pub fn to_err_msg(self) -> String { self.to_string() } -- cgit 1.4.1-3-g733a5