Skip to content

libstd: set baseline stability levels #15289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/libstd/ascii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

//! Operations on ASCII strings and characters

#![experimental]

use collections::Collection;
use fmt;
use iter::Iterator;
Expand Down
1 change: 1 addition & 0 deletions src/libstd/bitflags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
//! - `insert`: inserts the specified flags in-place
//! - `remove`: removes the specified flags in-place

#![experimental]
#![macro_escape]

#[macro_export]
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/c_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
//! handled correctly, i.e. that allocated memory is eventually freed
//! if necessary.

#![experimental]

use collections::Collection;
use kinds::Send;
use mem;
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/collections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* Collection types.
*/

#![experimental]

pub use core_collections::{Collection, Mutable, Map, MutableMap};
pub use core_collections::{Set, MutableSet, Deque};
pub use core_collections::{Bitv, BitvSet, BTree, DList, EnumSet};
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/failure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![experimental]

use alloc::owned::Box;
use any::{Any, AnyRefExt};
use fmt;
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ the `}` character is escaped with `}}`.

*/

#![experimental]

use io::Writer;
use io;
use result::{Ok, Err};
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/from_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

//! The `FromStr` trait for types that can be created from strings

#![experimental]

use option::{Option, Some, None};
use string::String;
use str::StrAllocating;
Expand Down
1 change: 1 addition & 0 deletions src/libstd/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ collector is task-local so `Gc<T>` is not sendable.

*/

#![experimental]
#![allow(experimental)]

use clone::Clone;
Expand Down
1 change: 1 addition & 0 deletions src/libstd/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ responding to errors that may occur while attempting to read the numbers.

*/

#![experimental]
#![deny(unused_must_use)]

use char::Char;
Expand Down
1 change: 1 addition & 0 deletions src/libstd/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
//! and `format!`, also available to all Rust code.

#![crate_id = "std#0.11.0-pre"]
#![unstable]
#![comment = "The Rust standard library"]
#![license = "MIT/ASL2"]
#![crate_type = "rlib"]
Expand Down
1 change: 1 addition & 0 deletions src/libstd/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
//! library. Each macro is available for use when linking against the standard
//! library.

#![experimental]
#![macro_escape]

/// The entry point for failure of rust tasks.
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

//! Operations and constants for 32-bits floats (`f32` type)

#![experimental]
#![allow(missing_doc)]
#![allow(unsigned_negate)]
#![doc(primitive = "f32")]
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

//! Operations and constants for 64-bits floats (`f64` type)

#![experimental]
#![allow(missing_doc)]
#![doc(primitive = "f64")]

Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/float_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![experimental]
#![macro_escape]
#![doc(hidden)]

Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/int_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![experimental]
#![macro_escape]
#![doc(hidden)]

Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//! These are implemented for the primitive numeric types in `std::{u8, u16,
//! u32, u64, uint, i8, i16, i32, i64, int, f32, f64}`.

#![experimental]
#![allow(missing_doc)]

use option::Option;
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/uint_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![experimental]
#![macro_escape]
#![doc(hidden)]
#![allow(unsigned_negate)]
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
* to write OS-ignorant code by default.
*/

#![experimental]

#![allow(missing_doc)]
#![allow(non_snake_case_functions)]

Expand Down
2 changes: 2 additions & 0 deletions src/libstd/path/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ println!("path exists: {}", path.exists());

*/

#![experimental]

use collections::Collection;
use c_str::CString;
use clone::Clone;
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
//! particularly useful standalone functions, like `from_str`, `range`, and
//! `drop`, `spawn`, and `channel`.

#![experimental]

// Reexported core operators
#[doc(no_inline)] pub use kinds::{Copy, Send, Sized, Share};
#[doc(no_inline)] pub use ops::{Add, Sub, Mul, Div, Rem, Neg, Not};
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/rand/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ println!("{}", tuple)
```
*/

#![experimental]

use cell::RefCell;
use clone::Clone;
use io::IoResult;
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/rt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Several modules in `core` are clients of `rt`:

*/

#![experimental]

// FIXME: this should not be here.
#![allow(missing_doc)]

Expand Down
2 changes: 2 additions & 0 deletions src/libstd/rtdeps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//! the standard library This varies per-platform, but these libraries are
//! necessary for running libstd.

#![experimental]

// All platforms need to link to rustrt
#[link(name = "rust_builtin", kind = "static")]
extern {}
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
//! and/or blocking at all, but rather provide the necessary tools to build
//! other types of concurrent primitives.

#![experimental]

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::{RWLock, RWLockReadGuard, RWLockWriteGuard};
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@
//! # }
//! ```

#![experimental]

use any::Any;
use comm::channel;
use io::{Writer, stdio};
Expand Down
2 changes: 2 additions & 0 deletions src/libstd/to_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ The `ToStr` trait for converting to strings

*/

#![experimental]

use fmt;
use string::String;

Expand Down