Skip to content

Commit d1bca75

Browse files
committed
Switch fmt extension to reference extfmt that's in core.
1 parent 8881833 commit d1bca75

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/comp/syntax/ext/fmt.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,8 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span, pieces: [piece], args: [@ast::expr])
9696
let recexpr = ast::expr_rec(astfields, option::none::<@ast::expr>);
9797
ret @{id: cx.next_id(), node: recexpr, span: sp};
9898
}
99-
fn make_path_vec(cx: ext_ctxt, ident: ast::ident) -> [ast::ident] {
100-
fn compiling_std(cx: ext_ctxt) -> bool {
101-
ret str::find(cx.crate_file_name(), "std.rc") >= 0;
102-
}
103-
if compiling_std(cx) {
104-
ret ["extfmt", "rt", ident];
105-
} else { ret ["std", "extfmt", "rt", ident]; }
99+
fn make_path_vec(_cx: ext_ctxt, ident: ast::ident) -> [ast::ident] {
100+
ret ["extfmt", "rt", ident];
106101
}
107102
fn make_rt_path_expr(cx: ext_ctxt, sp: span, ident: str) -> @ast::expr {
108103
let path = make_path_vec(cx, ident);

0 commit comments

Comments
 (0)