Add 'feature' and 'since' to stability attributes

This commit is contained in:
Brian Anderson
2015-01-12 18:40:19 -08:00
parent 90aa581cff
commit 94ca8a3610
186 changed files with 2822 additions and 2561 deletions

View File

@@ -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()
}