diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-12-13 16:25:51 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-12-13 16:34:50 -0800 |
| commit | fa9ad984fb2f013baebdbe01a42baa3b9101dd84 (patch) | |
| tree | 49115690e45ca322337b93f25308cd618f85b013 /src/comp/syntax/ext/fmt.rs | |
| parent | 32087f5c2a35bf8050067c22a57fd60269633a60 (diff) | |
| download | rust-fa9ad984fb2f013baebdbe01a42baa3b9101dd84.tar.gz rust-fa9ad984fb2f013baebdbe01a42baa3b9101dd84.zip | |
Copy first batch of material from libstd to libcore.
Diffstat (limited to 'src/comp/syntax/ext/fmt.rs')
| -rw-r--r-- | src/comp/syntax/ext/fmt.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/comp/syntax/ext/fmt.rs b/src/comp/syntax/ext/fmt.rs index 2d36d973870..c8721d058a3 100644 --- a/src/comp/syntax/ext/fmt.rs +++ b/src/comp/syntax/ext/fmt.rs @@ -5,9 +5,9 @@ * should all get sucked into either the standard library extfmt module or the * compiler syntax extension plugin interface. */ -import std::{vec, str, option}; -import std::option::{some}; -import std::extfmt::ct::*; +import core::{vec, str, option}; +import option::{some}; +import extfmt::ct::*; import base::*; import codemap::span; export expand_syntax_ext; @@ -257,7 +257,7 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span, pieces: [piece], args: [@ast::expr]) } fn log_conv(c: conv) { alt c.param { - some(p) { log "param: " + std::int::to_str(p, 10u); } + some(p) { log "param: " + int::to_str(p, 10u); } _ { log "param: none"; } } for f: flag in c.flags { @@ -270,17 +270,17 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span, pieces: [piece], args: [@ast::expr]) } } alt c.width { - count_is(i) { log "width: count is " + std::int::to_str(i, 10u); } + count_is(i) { log "width: count is " + int::to_str(i, 10u); } count_is_param(i) { - log "width: count is param " + std::int::to_str(i, 10u); + log "width: count is param " + int::to_str(i, 10u); } count_is_next_param. { log "width: count is next param"; } count_implied. { log "width: count is implied"; } } alt c.precision { - count_is(i) { log "prec: count is " + std::int::to_str(i, 10u); } + count_is(i) { log "prec: count is " + int::to_str(i, 10u); } count_is_param(i) { - log "prec: count is param " + std::int::to_str(i, 10u); + log "prec: count is param " + int::to_str(i, 10u); } count_is_next_param. { log "prec: count is next param"; } count_implied. { log "prec: count is implied"; } |
