Skip to content

Commit ab784b7

Browse files
committed
auto merge of #5059 : Kimundi/rust/incoming, r=catamorphism
compiles-as-is, but needs a snapshot to remove the `stage0`ed extfmt export in core. Closes #4750
2 parents e0767bf + 3792eb2 commit ab784b7

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

src/libcore/core.rc

+2
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ pub const debug : u32 = 4_u32;
225225
// The runtime interface used by the compiler
226226
#[cfg(notest)] pub mod rt;
227227
// The runtime and compiler interface to fmt!
228+
#[cfg(stage0)]
229+
#[path = "private/extfmt.rs"]
228230
pub mod extfmt;
229231
// Private APIs
230232
pub mod private;

src/libcore/prelude.rs

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ pub use char;
5252
pub use cmp;
5353
pub use dvec;
5454
pub use either;
55-
pub use extfmt;
5655
pub use f32;
5756
pub use f64;
5857
pub use float;

src/libcore/private.rs

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ pub mod weak_task;
3434
pub mod exchange_alloc;
3535
#[path = "private/intrinsics.rs"]
3636
pub mod intrinsics;
37+
#[path = "private/extfmt.rs"]
38+
pub mod extfmt;
3739

3840
extern mod rustrt {
3941
pub unsafe fn rust_create_little_lock() -> rust_little_lock;
File renamed without changes.

src/libsyntax/ext/fmt.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use codemap::span;
2323
use ext::base::*;
2424
use ext::base;
2525
use ext::build::*;
26-
use extfmt::ct::*;
26+
use private::extfmt::ct::*;
2727

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

0 commit comments

Comments
 (0)