Skip to content

Commit 0871a7e

Browse files
committed
---
yaml --- r: 46645 b: refs/heads/auto c: 9639ca5 h: refs/heads/master i: 46643: db2b1d3 v: v3
1 parent 8e8768f commit 0871a7e

32 files changed

+66
-69
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 4c35a0089377bc8572ad0fe356c64e00ed16c51b
17+
refs/heads/auto: 9639ca5aa88c59cedc7bbe4bd31ec7dabe8a62ec

branches/auto/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;

branches/auto/src/libcore/cleanup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ fn debug_mem() -> bool {
154154
#[cfg(notest)]
155155
#[lang="annihilate"]
156156
pub unsafe fn annihilate() {
157-
use rt::local_free;
157+
use unstable::lang::local_free;
158158
use io::WriterUtil;
159159
use io;
160160
use libc;

branches/auto/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.

branches/auto/src/libcore/core.rc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,13 @@ pub const debug : u32 = 4_u32;
225225

226226
/* Unsupported interfaces */
227227

228-
// The runtime interface used by the compiler
229-
#[cfg(notest)] pub mod rt;
230228
// Private APIs
231-
pub mod private;
232-
229+
pub mod unstable;
230+
// NOTE: Remove after snapshot
231+
#[cfg(stage0)]
232+
pub mod private {
233+
pub use super::unstable::extfmt;
234+
}
233235

234236
/* For internal use, not exported */
235237

branches/auto/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

branches/auto/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

branches/auto/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>;

branches/auto/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

branches/auto/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;

branches/auto/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;

branches/auto/src/libcore/task/local_data_priv.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ use prelude::*;
1919
use task::rt;
2020
use task::local_data::LocalDataKey;
2121

22-
#[cfg(notest)]
23-
use rt::rust_task;
24-
#[cfg(test)]
25-
#[allow(non_camel_case_types)]
26-
type rust_task = libc::c_void;
22+
use super::rt::rust_task;
2723

2824
pub trait LocalData { }
2925
impl<T:Durable> LocalData for @T { }

branches/auto/src/libcore/task/spawn.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ use option;
7979
use comm::{Chan, GenericChan, GenericPort, Port, stream};
8080
use pipes;
8181
use prelude::*;
82-
use private;
82+
use unstable;
8383
use ptr;
8484
use hashmap::linear::LinearSet;
8585
use task::local_data_priv::{local_get, local_set};
@@ -123,7 +123,7 @@ struct TaskGroupData {
123123
// tasks in this group.
124124
mut descendants: TaskSet,
125125
}
126-
type TaskGroupArc = private::Exclusive<Option<TaskGroupData>>;
126+
type TaskGroupArc = unstable::Exclusive<Option<TaskGroupData>>;
127127

128128
type TaskGroupInner = &mut Option<TaskGroupData>;
129129

@@ -153,7 +153,7 @@ struct AncestorNode {
153153
mut ancestors: AncestorList,
154154
}
155155

156-
enum AncestorList = Option<private::Exclusive<AncestorNode>>;
156+
enum AncestorList = Option<unstable::Exclusive<AncestorNode>>;
157157

158158
// Accessors for taskgroup arcs and ancestor arcs that wrap the unsafety.
159159
#[inline(always)]
@@ -162,7 +162,7 @@ fn access_group<U>(x: &TaskGroupArc, blk: fn(TaskGroupInner) -> U) -> U {
162162
}
163163

164164
#[inline(always)]
165-
fn access_ancestors<U>(x: &private::Exclusive<AncestorNode>,
165+
fn access_ancestors<U>(x: &unstable::Exclusive<AncestorNode>,
166166
blk: fn(x: &mut AncestorNode) -> U) -> U {
167167
unsafe { x.with(blk) }
168168
}
@@ -458,7 +458,7 @@ fn gen_child_taskgroup(linked: bool, supervised: bool)
458458
// Main task, doing first spawn ever. Lazily initialise here.
459459
let mut members = new_taskset();
460460
taskset_insert(&mut members, spawner);
461-
let tasks = private::exclusive(Some(TaskGroupData {
461+
let tasks = unstable::exclusive(Some(TaskGroupData {
462462
members: members,
463463
descendants: new_taskset(),
464464
}));
@@ -482,7 +482,7 @@ fn gen_child_taskgroup(linked: bool, supervised: bool)
482482
(g, a, spawner_group.is_main)
483483
} else {
484484
// Child is in a separate group from spawner.
485-
let g = private::exclusive(Some(TaskGroupData {
485+
let g = unstable::exclusive(Some(TaskGroupData {
486486
members: new_taskset(),
487487
descendants: new_taskset(),
488488
}));
@@ -502,7 +502,7 @@ fn gen_child_taskgroup(linked: bool, supervised: bool)
502502
};
503503
assert new_generation < uint::max_value;
504504
// Build a new node in the ancestor list.
505-
AncestorList(Some(private::exclusive(AncestorNode {
505+
AncestorList(Some(unstable::exclusive(AncestorNode {
506506
generation: new_generation,
507507
parent_group: Some(spawner_group.tasks.clone()),
508508
ancestors: old_ancestors,

branches/auto/src/libcore/private.rs renamed to branches/auto/src/libcore/unstable.rs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,23 @@ use task;
2222
use task::{TaskBuilder, atomically};
2323
use uint;
2424

25-
#[path = "private/at_exit.rs"]
25+
#[path = "unstable/at_exit.rs"]
2626
pub mod at_exit;
27-
#[path = "private/global.rs"]
27+
#[path = "unstable/global.rs"]
2828
pub mod global;
29-
#[path = "private/finally.rs"]
29+
#[path = "unstable/finally.rs"]
3030
pub mod finally;
31-
#[path = "private/weak_task.rs"]
31+
#[path = "unstable/weak_task.rs"]
3232
pub mod weak_task;
33-
#[path = "private/exchange_alloc.rs"]
33+
#[path = "unstable/exchange_alloc.rs"]
3434
pub mod exchange_alloc;
35-
#[path = "private/intrinsics.rs"]
35+
#[path = "unstable/intrinsics.rs"]
3636
pub mod intrinsics;
37-
#[path = "private/extfmt.rs"]
37+
#[path = "unstable/extfmt.rs"]
3838
pub mod extfmt;
39+
#[path = "unstable/lang.rs"]
40+
#[cfg(notest)]
41+
pub mod lang;
3942

4043
extern mod rustrt {
4144
pub unsafe fn rust_create_little_lock() -> rust_little_lock;
@@ -312,7 +315,7 @@ pub mod tests {
312315
use cell::Cell;
313316
use comm;
314317
use option;
315-
use private::exclusive;
318+
use super::exclusive;
316319
use result;
317320
use task;
318321
use uint;

branches/auto/src/libcore/private/exchange_alloc.rs renamed to branches/auto/src/libcore/unstable/exchange_alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use c_malloc = libc::malloc;
1414
use c_free = libc::free;
1515
use managed::raw::{BoxHeaderRepr, BoxRepr};
1616
use cast::transmute;
17-
use private::intrinsics::{atomic_xadd,atomic_xsub};
17+
use unstable::intrinsics::{atomic_xadd,atomic_xsub};
1818
use ptr::null;
1919
use intrinsic::TyDesc;
2020

branches/auto/src/libcore/private/global.rs renamed to branches/auto/src/libcore/unstable/global.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ use libc::{c_void, uintptr_t};
3232
use option::{Option, Some, None};
3333
use ops::Drop;
3434
use pipes;
35-
use private::{Exclusive, exclusive};
36-
use private::{SharedMutableState, shared_mutable_state};
37-
use private::{get_shared_immutable_state};
38-
use private::at_exit::at_exit;
39-
use private::intrinsics::atomic_cxchg;
35+
use unstable::{Exclusive, exclusive};
36+
use unstable::{SharedMutableState, shared_mutable_state};
37+
use unstable::{get_shared_immutable_state};
38+
use unstable::at_exit::at_exit;
39+
use unstable::intrinsics::atomic_cxchg;
4040
use hashmap::linear::LinearMap;
4141
use sys::Closure;
4242
use task::spawn;

branches/auto/src/libcore/rt.rs renamed to branches/auto/src/libcore/unstable/lang.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,11 @@ 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};
2222

23-
#[allow(non_camel_case_types)]
24-
pub type rust_task = c_void;
25-
2623
#[cfg(target_word_size = "32")]
2724
pub const FROZEN_BIT: uint = 0x80000000;
2825
#[cfg(target_word_size = "64")]

branches/auto/src/libcore/private/weak_task.rs renamed to branches/auto/src/libcore/unstable/weak_task.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ use comm::{Port, Chan, SharedChan, GenericChan, GenericPort};
2424
use hashmap::linear::LinearMap;
2525
use ops::Drop;
2626
use option::{Some, None, swap_unwrap};
27-
use private::at_exit::at_exit;
28-
use private::finally::Finally;
29-
use private::global::global_data_clone_create;
27+
use unstable::at_exit::at_exit;
28+
use unstable::finally::Finally;
29+
use unstable::global::global_data_clone_create;
3030
use task::rt::{task_id, get_task_id};
3131
use task::{Task, task, spawn};
3232

branches/auto/src/libcore/vec.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use kinds::Copy;
2222
use libc;
2323
use libc::size_t;
2424
use option::{None, Option, Some};
25-
use private::intrinsics;
25+
use unstable::intrinsics;
2626
use ptr;
2727
use ptr::addr_of;
2828
use sys;
@@ -2008,7 +2008,7 @@ pub mod raw {
20082008
use managed;
20092009
use option::{None, Some};
20102010
use option;
2011-
use private::intrinsics;
2011+
use unstable::intrinsics;
20122012
use ptr::addr_of;
20132013
use ptr;
20142014
use sys;
@@ -2622,8 +2622,8 @@ mod tests {
26222622
#[test]
26232623
fn test_swap_remove_noncopyable() {
26242624
// Tests that we don't accidentally run destructors twice.
2625-
let mut v = ~[::private::exclusive(()), ::private::exclusive(()),
2626-
::private::exclusive(())];
2625+
let mut v = ~[::unstable::exclusive(()), ::unstable::exclusive(()),
2626+
::unstable::exclusive(())];
26272627
let mut _e = v.swap_remove(0);
26282628
assert (len(v) == 2);
26292629
_e = v.swap_remove(1);

branches/auto/src/libstd/arc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ use core::cast;
2020
use core::cell::Cell;
2121
use core::pipes;
2222
use core::prelude::*;
23-
use core::private::{SharedMutableState, shared_mutable_state};
24-
use core::private::{clone_shared_mutable_state};
25-
use core::private::{get_shared_mutable_state, get_shared_immutable_state};
23+
use core::unstable::{SharedMutableState, shared_mutable_state};
24+
use core::unstable::{clone_shared_mutable_state};
25+
use core::unstable::{get_shared_mutable_state, get_shared_immutable_state};
2626
use core::ptr;
2727
use core::task;
2828
use core::util;

branches/auto/src/libstd/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use core::cell::Cell;
1919
use core::option;
2020
use core::pipes;
2121
use core::prelude::*;
22-
use core::private::{Exclusive, exclusive};
22+
use core::unstable::{Exclusive, exclusive};
2323
use core::ptr;
2424
use core::task;
2525
use core::util;

branches/auto/src/libstd/uv_global_loop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ use uv_iotask::{IoTask, spawn_iotask};
1818
use core::either::{Left, Right};
1919
use core::libc;
2020
use core::comm::{Port, Chan, SharedChan, select2i};
21-
use core::private::global::{global_data_clone_create,
21+
use core::unstable::global::{global_data_clone_create,
2222
global_data_clone};
23-
use core::private::weak_task::weaken_task;
23+
use core::unstable::weak_task::weaken_task;
2424
use core::str;
2525
use core::task::{task, SingleThreaded, spawn};
2626
use core::task;

branches/auto/src/libsyntax/ext/fmt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use ext::base::*;
2424
use ext::base;
2525
use ext::build;
2626
use ext::build::*;
27-
use private::extfmt::ct::*;
27+
use unstable::extfmt::ct::*;
2828

2929
pub fn expand_syntax_ext(cx: ext_ctxt, sp: span, tts: ~[ast::token_tree])
3030
-> base::MacResult {
@@ -57,7 +57,7 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span,
5757
-> @ast::expr {
5858
fn make_path_vec(cx: ext_ctxt, ident: @~str) -> ~[ast::ident] {
5959
let intr = cx.parse_sess().interner;
60-
return ~[intr.intern(@~"private"), intr.intern(@~"extfmt"),
60+
return ~[intr.intern(@~"unstable"), intr.intern(@~"extfmt"),
6161
intr.intern(@~"rt"), intr.intern(ident)];
6262
}
6363
fn make_rt_path_expr(cx: ext_ctxt, sp: span, nm: @~str) -> @ast::expr {

branches/auto/src/snapshots.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
S 2013-02-27 a6d9689
2-
freebsd-x86_64 683f329fe589af854f9a375405468691d98015ac
2+
freebsd-x86_64 d33b5ebbf3335f6a8a5cc23572f630ad66539830
33
linux-i386 22f5c2a91941735007ed804586fc0f0e82fc3601
44
linux-x86_64 328fb144edbed8cabb8c2c6306304e3d8460ef60
55
macos-i386 5dda51347f9aba4c70a0890d3ec084d98a49c015

0 commit comments

Comments
 (0)