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

@@ -14,7 +14,7 @@
//! library. Each macro is available for use when linking against the standard
//! library.
#![unstable]
#![unstable(feature = "unnamed_feature", since = "1.0.0")]
/// The entry point for panic of Rust tasks.
///
@@ -36,7 +36,7 @@
/// panic!("this is a {} {message}", "fancy", message = "message");
/// ```
#[macro_export]
#[stable]
#[stable(feature = "grandfathered", since = "1.0.0")]
macro_rules! panic {
() => ({
panic!("explicit panic")
@@ -71,7 +71,7 @@ macro_rules! panic {
/// format!("x = {}, y = {y}", 10i, y = 30i);
/// ```
#[macro_export]
#[stable]
#[stable(feature = "grandfathered", since = "1.0.0")]
macro_rules! format {
($($arg:tt)*) => ($crate::fmt::format(format_args!($($arg)*)))
}
@@ -79,7 +79,7 @@ macro_rules! format {
/// Equivalent to the `println!` macro except that a newline is not printed at
/// the end of the message.
#[macro_export]
#[stable]
#[stable(feature = "grandfathered", since = "1.0.0")]
macro_rules! print {
($($arg:tt)*) => ($crate::io::stdio::print_args(format_args!($($arg)*)))
}
@@ -97,7 +97,7 @@ macro_rules! print {
/// println!("format {} arguments", "some");
/// ```
#[macro_export]
#[stable]
#[stable(feature = "grandfathered", since = "1.0.0")]
macro_rules! println {
($($arg:tt)*) => ($crate::io::stdio::println_args(format_args!($($arg)*)))
}
@@ -106,7 +106,7 @@ macro_rules! println {
/// error if the value of the expression is `Err`. For more information, see
/// `std::io`.
#[macro_export]
#[stable]
#[stable(feature = "grandfathered", since = "1.0.0")]
macro_rules! try {
($expr:expr) => (match $expr {
$crate::result::Result::Ok(val) => val,
@@ -148,7 +148,7 @@ macro_rules! try {
///
/// For more information about select, see the `std::sync::mpsc::Select` structure.
#[macro_export]
#[unstable]
#[unstable(feature = "unnamed_feature", since = "1.0.0")]
macro_rules! select {
(
$($name:pat = $rx:ident.$meth:ident() => $code:expr),+