Skip to content

Commit bcf6268

Browse files
committed
Rename core::private to core::unstable. #4743
1 parent cab8ec2 commit bcf6268

28 files changed

+59
-56
lines changed

src/libcore/at_vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ pub mod raw {
183183
use at_vec::{capacity, rustrt};
184184
use cast::transmute;
185185
use libc;
186-
use private::intrinsics::{move_val_init};
186+
use unstable::intrinsics::{move_val_init};
187187
use ptr::addr_of;
188188
use ptr;
189189
use sys;

src/libcore/comm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use either::{Either, Left, Right};
1212
use kinds::Owned;
1313
use option;
1414
use option::{Option, Some, None, unwrap};
15-
use private;
15+
use unstable;
1616
use vec;
1717

1818
use pipes::{recv, try_recv, wait_many, peek, PacketHeader};
@@ -242,7 +242,7 @@ impl<T: Owned> Peekable<T> for PortSet<T> {
242242
}
243243
244244
/// A channel that can be shared between many senders.
245-
pub type SharedChan<T> = private::Exclusive<Chan<T>>;
245+
pub type SharedChan<T> = unstable::Exclusive<Chan<T>>;
246246
247247
impl<T: Owned> GenericChan<T> for SharedChan<T> {
248248
fn send(x: T) {
@@ -268,7 +268,7 @@ impl<T: Owned> GenericSmartChan<T> for SharedChan<T> {
268268
269269
/// Converts a `chan` into a `shared_chan`.
270270
pub fn SharedChan<T:Owned>(c: Chan<T>) -> SharedChan<T> {
271-
private::exclusive(c)
271+
unstable::exclusive(c)
272272
}
273273
274274
/// Receive a message from one of two endpoints.

src/libcore/core.rc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,12 @@ pub const debug : u32 = 4_u32;
228228
// The runtime interface used by the compiler
229229
#[cfg(notest)] pub mod rt;
230230
// Private APIs
231-
pub mod private;
232-
231+
pub mod unstable;
232+
// NOTE: Remove after snapshot
233+
#[cfg(stage0)]
234+
pub mod private {
235+
pub use super::unstable::extfmt;
236+
}
233237

234238
/* For internal use, not exported */
235239

src/libcore/num/f32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use num::strconv;
1818
use num;
1919
use ops;
2020
use option::Option;
21-
use private::intrinsics::floorf32;
21+
use unstable::intrinsics::floorf32;
2222
use from_str;
2323
use to_str;
2424

src/libcore/num/f64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use num::strconv;
1919
use num;
2020
use ops;
2121
use option::Option;
22-
use private::intrinsics::floorf64;
22+
use unstable::intrinsics::floorf64;
2323
use to_str;
2424
use from_str;
2525

src/libcore/os.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ use libc::{mode_t, pid_t, FILE};
3535
use option;
3636
use option::{Some, None};
3737
use prelude::*;
38-
use private;
3938
use ptr;
4039
use str;
4140
use task;
@@ -145,8 +144,8 @@ This uses a per-runtime lock to serialize access.
145144
FIXME #4726: It would probably be appropriate to make this a real global
146145
*/
147146
fn with_env_lock<T>(f: &fn() -> T) -> T {
148-
use private::global::global_data_clone_create;
149-
use private::{Exclusive, exclusive};
147+
use unstable::global::global_data_clone_create;
148+
use unstable::{Exclusive, exclusive};
150149

151150
struct SharedValue(());
152151
type ValueMutex = Exclusive<SharedValue>;

src/libcore/pipes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ use libc;
9191
use option;
9292
use option::{None, Option, Some, unwrap};
9393
use pipes;
94-
use private::intrinsics;
94+
use unstable::intrinsics;
9595
use ptr;
96-
use private;
96+
use unstable;
9797
use task;
9898
use vec;
9999

src/libcore/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub use option;
6969
pub use os;
7070
pub use path;
7171
pub use comm;
72-
pub use private;
72+
pub use unstable;
7373
pub use ptr;
7474
pub use rand;
7575
pub use result;

src/libcore/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use cast;
1414
use cmp::{Eq, Ord};
1515
use libc;
1616
use libc::{c_void, size_t};
17-
use private::intrinsics::{memmove32,memmove64};
17+
use unstable::intrinsics::{memmove32,memmove64};
1818
use ptr;
1919
use str;
2020
use sys;

src/libcore/rt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use libc::{c_char, c_uchar, c_void, size_t, uintptr_t, c_int};
1515
use managed::raw::BoxRepr;
1616
use str;
1717
use sys;
18-
use private::exchange_alloc;
18+
use unstable::exchange_alloc;
1919
use cast::transmute;
2020

2121
use gc::{cleanup_stack_for_failure, gc, Word};

0 commit comments

Comments
 (0)