auto merge of #15289 : aturon/rust/libstd-stability, r=alexcrichton
Earlier commits have established a baseline of `experimental` stability for all crates under the facade (so their contents are considered experimental within libstd). Since `experimental` is `allow` by default, we should use the same baseline stability for libstd itself. This commit adds `experimental` tags to all of the modules defined in `std`, and `unstable` to `std` itself.
This commit is contained in:
commit
3deb2c1aa6
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
//! Operations on ASCII strings and characters
|
//! Operations on ASCII strings and characters
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
use collections::Collection;
|
use collections::Collection;
|
||||||
use fmt;
|
use fmt;
|
||||||
use iter::Iterator;
|
use iter::Iterator;
|
||||||
|
|
|
@ -105,6 +105,7 @@
|
||||||
//! - `insert`: inserts the specified flags in-place
|
//! - `insert`: inserts the specified flags in-place
|
||||||
//! - `remove`: removes the specified flags in-place
|
//! - `remove`: removes the specified flags in-place
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
#![macro_escape]
|
#![macro_escape]
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
|
|
@ -33,6 +33,8 @@
|
||||||
//! handled correctly, i.e. that allocated memory is eventually freed
|
//! handled correctly, i.e. that allocated memory is eventually freed
|
||||||
//! if necessary.
|
//! if necessary.
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
use collections::Collection;
|
use collections::Collection;
|
||||||
use kinds::Send;
|
use kinds::Send;
|
||||||
use mem;
|
use mem;
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
* Collection types.
|
* Collection types.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
pub use core_collections::{Collection, Mutable, Map, MutableMap};
|
pub use core_collections::{Collection, Mutable, Map, MutableMap};
|
||||||
pub use core_collections::{Set, MutableSet, Deque};
|
pub use core_collections::{Set, MutableSet, Deque};
|
||||||
pub use core_collections::{Bitv, BitvSet, BTree, DList, EnumSet};
|
pub use core_collections::{Bitv, BitvSet, BTree, DList, EnumSet};
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
use alloc::owned::Box;
|
use alloc::owned::Box;
|
||||||
use any::{Any, AnyRefExt};
|
use any::{Any, AnyRefExt};
|
||||||
use fmt;
|
use fmt;
|
||||||
|
|
|
@ -412,6 +412,8 @@ the `}` character is escaped with `}}`.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
use io::Writer;
|
use io::Writer;
|
||||||
use io;
|
use io;
|
||||||
use result::{Ok, Err};
|
use result::{Ok, Err};
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
//! The `FromStr` trait for types that can be created from strings
|
//! The `FromStr` trait for types that can be created from strings
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
use option::{Option, Some, None};
|
use option::{Option, Some, None};
|
||||||
use string::String;
|
use string::String;
|
||||||
use str::StrAllocating;
|
use str::StrAllocating;
|
||||||
|
|
|
@ -16,6 +16,7 @@ collector is task-local so `Gc<T>` is not sendable.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
#![allow(experimental)]
|
#![allow(experimental)]
|
||||||
|
|
||||||
use clone::Clone;
|
use clone::Clone;
|
||||||
|
|
|
@ -216,6 +216,7 @@ responding to errors that may occur while attempting to read the numbers.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
#![deny(unused_must_use)]
|
#![deny(unused_must_use)]
|
||||||
|
|
||||||
use char::Char;
|
use char::Char;
|
||||||
|
|
|
@ -95,6 +95,7 @@
|
||||||
//! and `format!`, also available to all Rust code.
|
//! and `format!`, also available to all Rust code.
|
||||||
|
|
||||||
#![crate_id = "std#0.11.0-pre"]
|
#![crate_id = "std#0.11.0-pre"]
|
||||||
|
#![unstable]
|
||||||
#![comment = "The Rust standard library"]
|
#![comment = "The Rust standard library"]
|
||||||
#![license = "MIT/ASL2"]
|
#![license = "MIT/ASL2"]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
//! library. Each macro is available for use when linking against the standard
|
//! library. Each macro is available for use when linking against the standard
|
||||||
//! library.
|
//! library.
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
#![macro_escape]
|
#![macro_escape]
|
||||||
|
|
||||||
/// The entry point for failure of rust tasks.
|
/// The entry point for failure of rust tasks.
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
//! Operations and constants for 32-bits floats (`f32` type)
|
//! Operations and constants for 32-bits floats (`f32` type)
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
#![allow(missing_doc)]
|
#![allow(missing_doc)]
|
||||||
#![allow(unsigned_negate)]
|
#![allow(unsigned_negate)]
|
||||||
#![doc(primitive = "f32")]
|
#![doc(primitive = "f32")]
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
//! Operations and constants for 64-bits floats (`f64` type)
|
//! Operations and constants for 64-bits floats (`f64` type)
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
#![allow(missing_doc)]
|
#![allow(missing_doc)]
|
||||||
#![doc(primitive = "f64")]
|
#![doc(primitive = "f64")]
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
#![macro_escape]
|
#![macro_escape]
|
||||||
#![doc(hidden)]
|
#![doc(hidden)]
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
#![macro_escape]
|
#![macro_escape]
|
||||||
#![doc(hidden)]
|
#![doc(hidden)]
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
//! These are implemented for the primitive numeric types in `std::{u8, u16,
|
//! These are implemented for the primitive numeric types in `std::{u8, u16,
|
||||||
//! u32, u64, uint, i8, i16, i32, i64, int, f32, f64}`.
|
//! u32, u64, uint, i8, i16, i32, i64, int, f32, f64}`.
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
#![allow(missing_doc)]
|
#![allow(missing_doc)]
|
||||||
|
|
||||||
use option::Option;
|
use option::Option;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
#![macro_escape]
|
#![macro_escape]
|
||||||
#![doc(hidden)]
|
#![doc(hidden)]
|
||||||
#![allow(unsigned_negate)]
|
#![allow(unsigned_negate)]
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
* to write OS-ignorant code by default.
|
* to write OS-ignorant code by default.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
#![allow(missing_doc)]
|
#![allow(missing_doc)]
|
||||||
#![allow(non_snake_case_functions)]
|
#![allow(non_snake_case_functions)]
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,8 @@ println!("path exists: {}", path.exists());
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
use collections::Collection;
|
use collections::Collection;
|
||||||
use c_str::CString;
|
use c_str::CString;
|
||||||
use clone::Clone;
|
use clone::Clone;
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
//! particularly useful standalone functions, like `from_str`, `range`, and
|
//! particularly useful standalone functions, like `from_str`, `range`, and
|
||||||
//! `drop`, `spawn`, and `channel`.
|
//! `drop`, `spawn`, and `channel`.
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
// Reexported core operators
|
// Reexported core operators
|
||||||
#[doc(no_inline)] pub use kinds::{Copy, Send, Sized, Share};
|
#[doc(no_inline)] pub use kinds::{Copy, Send, Sized, Share};
|
||||||
#[doc(no_inline)] pub use ops::{Add, Sub, Mul, Div, Rem, Neg, Not};
|
#[doc(no_inline)] pub use ops::{Add, Sub, Mul, Div, Rem, Neg, Not};
|
||||||
|
|
|
@ -73,6 +73,8 @@ println!("{}", tuple)
|
||||||
```
|
```
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
use cell::RefCell;
|
use cell::RefCell;
|
||||||
use clone::Clone;
|
use clone::Clone;
|
||||||
use io::IoResult;
|
use io::IoResult;
|
||||||
|
|
|
@ -51,6 +51,8 @@ Several modules in `core` are clients of `rt`:
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
// FIXME: this should not be here.
|
// FIXME: this should not be here.
|
||||||
#![allow(missing_doc)]
|
#![allow(missing_doc)]
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
//! the standard library This varies per-platform, but these libraries are
|
//! the standard library This varies per-platform, but these libraries are
|
||||||
//! necessary for running libstd.
|
//! necessary for running libstd.
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
// All platforms need to link to rustrt
|
// All platforms need to link to rustrt
|
||||||
#[link(name = "rust_builtin", kind = "static")]
|
#[link(name = "rust_builtin", kind = "static")]
|
||||||
extern {}
|
extern {}
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
//! and/or blocking at all, but rather provide the necessary tools to build
|
//! and/or blocking at all, but rather provide the necessary tools to build
|
||||||
//! other types of concurrent primitives.
|
//! other types of concurrent primitives.
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
pub use core_sync::{atomics, deque, mpmc_bounded_queue, mpsc_queue, spsc_queue};
|
pub use core_sync::{atomics, deque, mpmc_bounded_queue, mpsc_queue, spsc_queue};
|
||||||
pub use core_sync::{Arc, Weak, Mutex, MutexGuard, Condvar, Barrier};
|
pub use core_sync::{Arc, Weak, Mutex, MutexGuard, Condvar, Barrier};
|
||||||
pub use core_sync::{RWLock, RWLockReadGuard, RWLockWriteGuard};
|
pub use core_sync::{RWLock, RWLockReadGuard, RWLockWriteGuard};
|
||||||
|
|
|
@ -91,6 +91,8 @@
|
||||||
//! # }
|
//! # }
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
use any::Any;
|
use any::Any;
|
||||||
use comm::channel;
|
use comm::channel;
|
||||||
use io::{Writer, stdio};
|
use io::{Writer, stdio};
|
||||||
|
|
|
@ -14,6 +14,8 @@ The `ToStr` trait for converting to strings
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#![experimental]
|
||||||
|
|
||||||
use fmt;
|
use fmt;
|
||||||
use string::String;
|
use string::String;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue