Skip to content

Commit 3ee5e13

Browse files
committed
---
yaml --- r: 6679 b: refs/heads/master c: f09eb20 h: refs/heads/master i: 6677: 102f6cc 6675: eb538d6 6671: 0fe4e72 v: v3
1 parent 3c81d8d commit 3ee5e13

File tree

327 files changed

+5598
-736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

327 files changed

+5598
-736
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 9c4b3c26f0e84a37b9fa2bfeec46146686d6241a
2+
refs/heads/master: f09eb2086d15b04b0b762e25c3d78ae93aa06509

trunk/src/cargo/cargo.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import rustc::syntax::parse::parser;
66
import std::fs;
77
import std::generic_os;
88
import std::io;
9-
import std::option;
10-
import std::option::{none, some};
9+
import option;
10+
import option::{none, some};
1111
import std::os;
1212
import std::run;
13-
import std::str;
13+
import str;
1414
import std::tempfile;
15-
import std::vec;
15+
import vec;
1616

1717
type cargo = {
1818
root: str,

trunk/src/comp/back/link.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import front::attr;
55
import middle::ty;
66
import metadata::{encoder, cstore};
77
import middle::trans_common::crate_ctxt;
8-
import std::str;
8+
import str;
99
import std::fs;
10-
import std::vec;
11-
import std::option;
10+
import vec;
11+
import option;
1212
import std::run;
1313
import option::some;
1414
import option::none;
@@ -32,7 +32,7 @@ tag output_type {
3232

3333
fn llvm_err(sess: session::session, msg: str) unsafe {
3434
let buf = llvm::LLVMRustGetLastError();
35-
if buf == std::ptr::null() {
35+
if buf == ptr::null() {
3636
sess.fatal(msg);
3737
} else { sess.fatal(msg + ": " + str::str_from_cstr(buf)); }
3838
}

trunk/src/comp/back/rpath.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import std::os;
22
import std::fs;
33
import std::os_fs;
4-
import std::vec;
4+
import vec;
55
import std::map;
66
import std::math;
7-
import std::str;
8-
import std::uint;
7+
import str;
8+
import uint;
99
import metadata::cstore;
1010
import driver::session;
1111
import util::filesearch;

trunk/src/comp/driver/rustc.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ import middle::{trans, resolve, freevars, kind, ty, typeck, fn_usage,
1010
import syntax::print::{pp, pprust};
1111
import util::{ppaux, filesearch};
1212
import back::link;
13-
import std::{fs, option, str, vec, int, io, getopts, result};
14-
import std::option::{some, none};
15-
import std::getopts::{optopt, optmulti, optflag, optflagopt, opt_present};
13+
import core::{option, str, vec, int, result};
14+
import std::{fs, io, getopts};
15+
import option::{some, none};
16+
import getopts::{optopt, optmulti, optflag, optflagopt, opt_present};
1617
import back::{x86, x86_64};
1718

1819
tag pp_mode { ppm_normal; ppm_expanded; ppm_typed; ppm_identified; }
@@ -104,7 +105,7 @@ fn time<T>(do_it: bool, what: str, thunk: fn@() -> T) -> T {
104105
let rv = thunk();
105106
let end = std::time::precise_time_s();
106107
log_err #fmt["time: %s took %s s", what,
107-
std::float::to_str(end - start, 3u)];
108+
float::to_str(end - start, 3u)];
108109
ret rv;
109110
}
110111

trunk/src/comp/driver/session.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import syntax::{ast, codemap};
33
import syntax::ast::node_id;
44
import codemap::span;
55
import syntax::ast::{int_ty, uint_ty, float_ty};
6-
import std::{option};
7-
import std::option::{some, none};
6+
import option;
7+
import option::{some, none};
88
import syntax::parse::parser::parse_sess;
99
import util::filesearch;
1010
import back::target_strs;

trunk/src/comp/front/attr.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Functions dealing with attributes and meta_items
22

3-
import std::{either, vec, map, option};
3+
import core::{either, vec, option};
4+
import std::map;
45
import syntax::{ast, ast_util};
56
import driver::session;
67

trunk/src/comp/front/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import std::{vec, option};
1+
import core::{vec, option};
22
import syntax::{ast, fold};
33
import attr;
44

trunk/src/comp/front/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Code that generates a test runner to run all the tests in a crate
22

3-
import std::{option, vec};
3+
import core::{option, vec};
44
import syntax::{ast, ast_util};
55
import syntax::ast_util::*;
66
//import syntax::ast_util::dummy_sp;

trunk/src/comp/lib/llvm.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import std::{vec, str, option};
2-
import std::str::sbuf;
1+
import core::{vec, str, option};
2+
import str::sbuf;
33

44
import llvm::{TypeRef, MemoryBufferRef,
55
PassManagerRef, TargetDataRef,
@@ -960,7 +960,7 @@ fn type_to_str_inner(names: type_names, outer0: [TypeRef], ty: TypeRef) ->
960960
5 { ret "PPC_FP128"; }
961961
6 { ret "Label"; }
962962
7 {
963-
ret "i" + std::int::str(llvm::LLVMGetIntTypeWidth(ty) as int);
963+
ret "i" + int::str(llvm::LLVMGetIntTypeWidth(ty) as int);
964964
}
965965
8 {
966966
let s = "fn(";
@@ -996,7 +996,7 @@ fn type_to_str_inner(names: type_names, outer0: [TypeRef], ty: TypeRef) ->
996996
i += 1u;
997997
if tout as int == ty as int {
998998
let n: uint = vec::len::<TypeRef>(outer0) - i;
999-
ret "*\\" + std::int::str(n as int);
999+
ret "*\\" + int::str(n as int);
10001000
}
10011001
}
10021002
ret "*" +

0 commit comments

Comments
 (0)