Skip to content

Commit 320331f

Browse files
committed
Use a different strategy for transitioning to camel case extfmt
1 parent 2eef665 commit 320331f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/libcore/extfmt.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,8 @@ mod ct {
273273
// decisions made a runtime. If it proves worthwhile then some of these
274274
// conditions can be evaluated at compile-time. For now though it's cleaner to
275275
// implement it 0this way, I think.
276-
#[cfg(stage1)]
277-
#[cfg(stage2)]
278-
#[cfg(stage3)]
279-
mod rt {
276+
// XXX Rename to rt after snapshot
277+
mod rt2 {
280278
const flag_none : u32 = 0u32;
281279
const flag_left_justify : u32 = 0b00000000000000000000000000000001u32;
282280
const flag_left_zero_pad : u32 = 0b00000000000000000000000000000010u32;
@@ -464,7 +462,6 @@ mod rt {
464462
}
465463

466464
// XXX remove after snappies
467-
#[cfg(stage0)]
468465
#[allow(non_camel_case_types)]
469466
mod rt {
470467
const flag_none : u32 = 0u32;

src/libsyntax/ext/fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span,
3939
-> @ast::expr {
4040
fn make_path_vec(_cx: ext_ctxt, ident: @~str) -> ~[ast::ident] {
4141
let intr = _cx.parse_sess().interner;
42-
return ~[intr.intern(@~"extfmt"), intr.intern(@~"rt"),
42+
return ~[intr.intern(@~"extfmt"), intr.intern(@~"rt2"),
4343
intr.intern(ident)];
4444
}
4545
fn make_rt_path_expr(cx: ext_ctxt, sp: span, nm: @~str) -> @ast::expr {

0 commit comments

Comments
 (0)