Skip to content

Commit f7bb31a

Browse files
committed
libstd: set baseline stability levels.
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.
1 parent 8bc286f commit f7bb31a

26 files changed

+41
-0
lines changed

src/libstd/ascii.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
//! Operations on ASCII strings and characters
1212
13+
#![experimental]
14+
1315
use collections::Collection;
1416
use fmt;
1517
use iter::Iterator;

src/libstd/bitflags.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
//! - `insert`: inserts the specified flags in-place
106106
//! - `remove`: removes the specified flags in-place
107107
108+
#![experimental]
108109
#![macro_escape]
109110

110111
#[macro_export]

src/libstd/c_vec.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
//! handled correctly, i.e. that allocated memory is eventually freed
3434
//! if necessary.
3535
36+
#![experimental]
37+
3638
use collections::Collection;
3739
use kinds::Send;
3840
use mem;

src/libstd/collections/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* Collection types.
1313
*/
1414

15+
#![experimental]
16+
1517
pub use core_collections::{Collection, Mutable, Map, MutableMap};
1618
pub use core_collections::{Set, MutableSet, Deque};
1719
pub use core_collections::{Bitv, BitvSet, BTree, DList, EnumSet};

src/libstd/failure.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![experimental]
12+
1113
use alloc::owned::Box;
1214
use any::{Any, AnyRefExt};
1315
use fmt;

src/libstd/fmt.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ the `}` character is escaped with `}}`.
412412
413413
*/
414414

415+
#![experimental]
416+
415417
use io::Writer;
416418
use io;
417419
use result::{Ok, Err};

src/libstd/from_str.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
//! The `FromStr` trait for types that can be created from strings
1212
13+
#![experimental]
14+
1315
use option::{Option, Some, None};
1416
use string::String;
1517
use str::StrAllocating;

src/libstd/gc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ collector is task-local so `Gc<T>` is not sendable.
1616
1717
*/
1818

19+
#![experimental]
1920
#![allow(experimental)]
2021

2122
use clone::Clone;

src/libstd/io/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ responding to errors that may occur while attempting to read the numbers.
216216
217217
*/
218218

219+
#![experimental]
219220
#![deny(unused_must_use)]
220221

221222
use char::Char;

src/libstd/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
//! and `format!`, also available to all Rust code.
9696
9797
#![crate_id = "std#0.11.0-pre"]
98+
#![unstable]
9899
#![comment = "The Rust standard library"]
99100
#![license = "MIT/ASL2"]
100101
#![crate_type = "rlib"]

0 commit comments

Comments
 (0)