Moved core::extfmt to core::private::extfmt

Needs a snapshot to remove stage0 extfmt export in core
This commit is contained in:
Marvin Löbel 2013-02-20 21:08:25 +01:00
parent 41a4151173
commit 3792eb2a38
5 changed files with 7 additions and 4 deletions

View File

@ -225,6 +225,8 @@ pub const debug : u32 = 4_u32;
// The runtime interface used by the compiler
#[cfg(notest)] pub mod rt;
// The runtime and compiler interface to fmt!
#[cfg(stage0)]
#[path = "private/extfmt.rs"]
pub mod extfmt;
// Private APIs
pub mod private;

View File

@ -52,7 +52,6 @@ pub use char;
pub use cmp;
pub use dvec;
pub use either;
pub use extfmt;
pub use f32;
pub use f64;
pub use float;

View File

@ -34,6 +34,8 @@ pub mod weak_task;
pub mod exchange_alloc;
#[path = "private/intrinsics.rs"]
pub mod intrinsics;
#[path = "private/extfmt.rs"]
pub mod extfmt;
extern mod rustrt {
pub unsafe fn rust_create_little_lock() -> rust_little_lock;

View File

@ -23,7 +23,7 @@ use codemap::span;
use ext::base::*;
use ext::base;
use ext::build::*;
use extfmt::ct::*;
use private::extfmt::ct::*;
pub fn expand_syntax_ext(cx: ext_ctxt, sp: span, tts: ~[ast::token_tree])
-> base::MacResult {
@ -56,8 +56,8 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span,
-> @ast::expr {
fn make_path_vec(cx: ext_ctxt, ident: @~str) -> ~[ast::ident] {
let intr = cx.parse_sess().interner;
return ~[intr.intern(@~"extfmt"), intr.intern(@~"rt"),
intr.intern(ident)];
return ~[intr.intern(@~"private"), intr.intern(@~"extfmt"),
intr.intern(@~"rt"), intr.intern(ident)];
}
fn make_rt_path_expr(cx: ext_ctxt, sp: span, nm: @~str) -> @ast::expr {
let path = make_path_vec(cx, nm);