Skip to content

Commit 3deb2c1

Browse files
committed
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.
2 parents 6ab7b66 + f7bb31a commit 3deb2c1

26 files changed

+41
-0
lines changed

Diff for: src/libstd/ascii.rs

+2
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;

Diff for: src/libstd/bitflags.rs

+1
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]

Diff for: src/libstd/c_vec.rs

+2
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;

Diff for: src/libstd/collections/mod.rs

+2
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};

Diff for: src/libstd/failure.rs

+2
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;

Diff for: src/libstd/fmt.rs

+2
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};

Diff for: src/libstd/from_str.rs

+2
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;

Diff for: src/libstd/gc.rs

+1
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;

Diff for: src/libstd/io/mod.rs

+1
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;

Diff for: src/libstd/lib.rs

+1
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"]

Diff for: src/libstd/macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
//! library. Each macro is available for use when linking against the standard
1515
//! library.
1616
17+
#![experimental]
1718
#![macro_escape]
1819

1920
/// The entry point for failure of rust tasks.

Diff for: src/libstd/num/f32.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
//! Operations and constants for 32-bits floats (`f32` type)
1212
13+
#![experimental]
1314
#![allow(missing_doc)]
1415
#![allow(unsigned_negate)]
1516
#![doc(primitive = "f32")]

Diff for: src/libstd/num/f64.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
//! Operations and constants for 64-bits floats (`f64` type)
1212
13+
#![experimental]
1314
#![allow(missing_doc)]
1415
#![doc(primitive = "f64")]
1516

Diff for: src/libstd/num/float_macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![experimental]
1112
#![macro_escape]
1213
#![doc(hidden)]
1314

Diff for: src/libstd/num/int_macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![experimental]
1112
#![macro_escape]
1213
#![doc(hidden)]
1314

Diff for: src/libstd/num/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
//! These are implemented for the primitive numeric types in `std::{u8, u16,
1414
//! u32, u64, uint, i8, i16, i32, i64, int, f32, f64}`.
1515
16+
#![experimental]
1617
#![allow(missing_doc)]
1718

1819
use option::Option;

Diff for: src/libstd/num/uint_macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![experimental]
1112
#![macro_escape]
1213
#![doc(hidden)]
1314
#![allow(unsigned_negate)]

Diff for: src/libstd/os.rs

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
* to write OS-ignorant code by default.
2727
*/
2828

29+
#![experimental]
30+
2931
#![allow(missing_doc)]
3032
#![allow(non_snake_case_functions)]
3133

Diff for: src/libstd/path/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ println!("path exists: {}", path.exists());
6363
6464
*/
6565

66+
#![experimental]
67+
6668
use collections::Collection;
6769
use c_str::CString;
6870
use clone::Clone;

Diff for: src/libstd/prelude.rs

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
//! particularly useful standalone functions, like `from_str`, `range`, and
3838
//! `drop`, `spawn`, and `channel`.
3939
40+
#![experimental]
41+
4042
// Reexported core operators
4143
#[doc(no_inline)] pub use kinds::{Copy, Send, Sized, Share};
4244
#[doc(no_inline)] pub use ops::{Add, Sub, Mul, Div, Rem, Neg, Not};

Diff for: src/libstd/rand/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ println!("{}", tuple)
7373
```
7474
*/
7575

76+
#![experimental]
77+
7678
use cell::RefCell;
7779
use clone::Clone;
7880
use io::IoResult;

Diff for: src/libstd/rt/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Several modules in `core` are clients of `rt`:
5151
5252
*/
5353

54+
#![experimental]
55+
5456
// FIXME: this should not be here.
5557
#![allow(missing_doc)]
5658

Diff for: src/libstd/rtdeps.rs

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//! the standard library This varies per-platform, but these libraries are
1313
//! necessary for running libstd.
1414
15+
#![experimental]
16+
1517
// All platforms need to link to rustrt
1618
#[link(name = "rust_builtin", kind = "static")]
1719
extern {}

Diff for: src/libstd/sync/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
//! and/or blocking at all, but rather provide the necessary tools to build
1616
//! other types of concurrent primitives.
1717
18+
#![experimental]
19+
1820
pub use core_sync::{atomics, deque, mpmc_bounded_queue, mpsc_queue, spsc_queue};
1921
pub use core_sync::{Arc, Weak, Mutex, MutexGuard, Condvar, Barrier};
2022
pub use core_sync::{RWLock, RWLockReadGuard, RWLockWriteGuard};

Diff for: src/libstd/task.rs

+2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@
9191
//! # }
9292
//! ```
9393
94+
#![experimental]
95+
9496
use any::Any;
9597
use comm::channel;
9698
use io::{Writer, stdio};

Diff for: src/libstd/to_str.rs

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ The `ToStr` trait for converting to strings
1414
1515
*/
1616

17+
#![experimental]
18+
1719
use fmt;
1820
use string::String;
1921

0 commit comments

Comments
 (0)