diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-12-15 16:34:19 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-12-16 10:59:11 -0800 |
| commit | d1bca753b8c5924272978a38cb08db6679f2cf0d (patch) | |
| tree | 2d2d18cf31dea7c815d95c75dfec3e2677289178 /src/comp | |
| parent | 88818334b7d6e4c4dfd07cdea09255ac8d42e5b7 (diff) | |
Switch fmt extension to reference extfmt that's in core.
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/syntax/ext/fmt.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/comp/syntax/ext/fmt.rs b/src/comp/syntax/ext/fmt.rs index c8721d058a3..3700ce2edfa 100644 --- a/src/comp/syntax/ext/fmt.rs +++ b/src/comp/syntax/ext/fmt.rs @@ -96,13 +96,8 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span, pieces: [piece], args: [@ast::expr]) let recexpr = ast::expr_rec(astfields, option::none::<@ast::expr>); ret @{id: cx.next_id(), node: recexpr, span: sp}; } - fn make_path_vec(cx: ext_ctxt, ident: ast::ident) -> [ast::ident] { - fn compiling_std(cx: ext_ctxt) -> bool { - ret str::find(cx.crate_file_name(), "std.rc") >= 0; - } - if compiling_std(cx) { - ret ["extfmt", "rt", ident]; - } else { ret ["std", "extfmt", "rt", ident]; } + fn make_path_vec(_cx: ext_ctxt, ident: ast::ident) -> [ast::ident] { + ret ["extfmt", "rt", ident]; } fn make_rt_path_expr(cx: ext_ctxt, sp: span, ident: str) -> @ast::expr { let path = make_path_vec(cx, ident); |
