Skip to content

Commit 3c81d8d

Browse files
committed
---
yaml --- r: 6678 b: refs/heads/master c: 9c4b3c2 h: refs/heads/master v: v3
1 parent 102f6cc commit 3c81d8d

File tree

328 files changed

+742
-5599
lines changed

Some content is hidden

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

328 files changed

+742
-5599
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: fa9ad984fb2f013baebdbe01a42baa3b9101dd84
2+
refs/heads/master: 9c4b3c26f0e84a37b9fa2bfeec46146686d6241a

trunk/configure

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ valopt() {
8585
local DOC="$*"
8686
if [ $HELP -eq 0 ]
8787
then
88-
local UOP=$(echo $OP | tr 'a-z-' 'A-Z_')
88+
local UOP=$(echo $OP | tr '[:lower:]' '[:upper:]' | tr '\-' '\_')
8989
local V="CFG_${UOP}"
9090
eval $V="$DEFAULT"
9191
for arg in $CFG_CONFIGURE_ARGS
@@ -335,6 +335,11 @@ then
335335
CFG_PREFIX=/usr/local
336336
fi
337337

338+
if [ -z "$CFG_HOST_TRIPLE" ]
339+
then
340+
CFG_HOST_TRIPLE="$DEFAULT_HOST_TRIPLE"
341+
fi
342+
338343
if [ -z "$CFG_TARGET_TRIPLES" ]
339344
then
340345
CFG_TARGET_TRIPLES="${CFG_HOST_TRIPLE}"

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 option;
10-
import option::{none, some};
9+
import std::option;
10+
import std::option::{none, some};
1111
import std::os;
1212
import std::run;
13-
import str;
13+
import std::str;
1414
import std::tempfile;
15-
import vec;
15+
import std::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 str;
8+
import std::str;
99
import std::fs;
10-
import vec;
11-
import option;
10+
import std::vec;
11+
import std::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 == ptr::null() {
35+
if buf == std::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 vec;
4+
import std::vec;
55
import std::map;
66
import std::math;
7-
import str;
8-
import uint;
7+
import std::str;
8+
import std::uint;
99
import metadata::cstore;
1010
import driver::session;
1111
import util::filesearch;

trunk/src/comp/driver/rustc.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ 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 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};
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};
1716
import back::{x86, x86_64};
1817

1918
tag pp_mode { ppm_normal; ppm_expanded; ppm_typed; ppm_identified; }
@@ -105,7 +104,7 @@ fn time<T>(do_it: bool, what: str, thunk: fn@() -> T) -> T {
105104
let rv = thunk();
106105
let end = std::time::precise_time_s();
107106
log_err #fmt["time: %s took %s s", what,
108-
float::to_str(end - start, 3u)];
107+
std::float::to_str(end - start, 3u)];
109108
ret rv;
110109
}
111110

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 option;
7-
import option::{some, none};
6+
import std::{option};
7+
import std::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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Functions dealing with attributes and meta_items
22

3-
import core::{either, vec, option};
4-
import std::map;
3+
import std::{either, vec, map, option};
54
import syntax::{ast, ast_util};
65
import driver::session;
76

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 core::{vec, option};
1+
import std::{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 core::{option, vec};
3+
import std::{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 core::{vec, str, option};
2-
import str::sbuf;
1+
import std::{vec, str, option};
2+
import std::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" + int::str(llvm::LLVMGetIntTypeWidth(ty) as int);
963+
ret "i" + std::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 "*\\" + int::str(n as int);
999+
ret "*\\" + std::int::str(n as int);
10001000
}
10011001
}
10021002
ret "*" +

trunk/src/comp/metadata/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// EBML tag definitions and utils shared by the encoder and decoder
22

3-
import str;
3+
import std::str;
44

55
const tag_paths: uint = 0x01u;
66

trunk/src/comp/metadata/creader.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import front::attr;
77
import syntax::visit;
88
import syntax::codemap::span;
99
import util::{filesearch};
10-
import core::{either, vec, str, option};
11-
import std::{io, fs};
12-
import option::{none, some};
10+
import std::{either, vec, str, fs, io, option};
11+
import std::option::{none, some};
1312
import std::map::{hashmap, new_int_hash};
1413
import syntax::print::pprust;
1514
import common::*;
@@ -207,7 +206,7 @@ fn get_metadata_section(sess: session::session,
207206
let cbuf = llvm::LLVMGetSectionContents(si.llsi);
208207
let csz = llvm::LLVMGetSectionSize(si.llsi);
209208
unsafe {
210-
let cvbuf: *u8 = unsafe::reinterpret_cast(cbuf);
209+
let cvbuf: *u8 = std::unsafe::reinterpret_cast(cbuf);
211210
ret option::some::<@[u8]>(@vec::unsafe::from_buf(cvbuf, csz));
212211
}
213212
}

trunk/src/comp/metadata/csearch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import syntax::ast;
44
import middle::ty;
5-
import option;
5+
import std::option;
66
import driver::session;
77

88
export get_symbol;

trunk/src/comp/metadata/cstore.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// The crate store - a central repo for information collected about external
22
// crates and libraries
33

4-
import core::{vec, str};
5-
import std::map;
4+
import std::{vec, map, str};
65
import syntax::ast;
76

87
export cstore;

trunk/src/comp/metadata/decoder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Decoding metadata from a single crate's metadata
22

3-
import core::{vec, option, str};
4-
import std::{ebml, io};
3+
import std::{ebml, vec, option, str, io};
54
import syntax::{ast, ast_util};
65
import front::attr;
76
import middle::ty;

trunk/src/comp/metadata/encoder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Metadata encoding
22

3-
import core::{vec, str, uint};
4-
import std::{io, ebml, map};
3+
import std::{vec, str, uint, io, ebml, map};
54
import syntax::ast::*;
65
import syntax::ast_util;
76
import syntax::ast_util::local_def;

trunk/src/comp/metadata/tydecode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Type decoding
22

3-
import core::{vec, str, uint};
4-
import option::{none, some};
3+
import std::{vec, str, uint};
4+
import std::option::{none, some};
55
import syntax::ast;
66
import syntax::ast::*;
77
import syntax::ast_util;

trunk/src/comp/metadata/tyencode.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// Type encoding
22

3-
import core::{int, uint};
4-
import std::io;
3+
import std::{io, int, uint};
54
import std::map::hashmap;
6-
import option::{some, none};
5+
import std::option::{some, none};
76
import syntax::ast::*;
87
import middle::ty;
98
import syntax::print::pprust::*;

trunk/src/comp/middle/alias.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import ast::{ident, fn_ident, node_id};
44
import syntax::codemap::span;
55
import syntax::visit;
66
import visit::vt;
7-
import core::{vec, option};
8-
import std::list;
9-
import option::{some, none, is_none};
7+
import std::{vec, option, list};
8+
import std::option::{some, none, is_none};
109
import list::list;
1110

1211
// This is not an alias-analyser (though it would merit from becoming one, or

trunk/src/comp/middle/ast_map.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import option;
2-
import std::smallintmap;
1+
import std::{smallintmap, option};
32
import syntax::ast::*;
43
import syntax::ast_util;
54
import syntax::{visit, codemap};

trunk/src/comp/middle/check_alt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import syntax::ast::*;
22
import syntax::ast_util::{variant_def_ids, dummy_sp, compare_lit_exprs,
33
lit_expr_eq};
44
import syntax::visit;
5-
import option::{some, none};
5+
import std::option::{some, none};
66

77
fn check_crate(tcx: ty::ctxt, crate: @crate) {
88
let v =
@@ -25,7 +25,7 @@ fn check_arms(tcx: ty::ctxt, arms: [arm]) {
2525
let reachable = true;
2626
let j = 0;
2727
while j < i {
28-
if option::is_none(arms[j].guard) {
28+
if std::option::is_none(arms[j].guard) {
2929
for prev_pat: @pat in arms[j].pats {
3030
if pattern_supersedes(tcx, prev_pat, arm_pat) {
3131
reachable = false;
@@ -149,7 +149,7 @@ fn is_refutable(tcx: ty::ctxt, pat: @pat) -> bool {
149149
}
150150
pat_tag(_, args) {
151151
let vdef = variant_def_ids(tcx.def_map.get(pat.id));
152-
if vec::len(ty::tag_variants(tcx, vdef.tg)) != 1u { ret true; }
152+
if std::vec::len(ty::tag_variants(tcx, vdef.tg)) != 1u { ret true; }
153153
for p: @pat in args { if is_refutable(tcx, p) { ret true; } }
154154
false
155155
}

trunk/src/comp/middle/fn_usage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import syntax::ast;
22
import syntax::visit;
3-
import option::some;
3+
import std::option::some;
44
import syntax::print::pprust::expr_to_str;
55

66
export check_crate_fn_usage;

trunk/src/comp/middle/freevars.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// A pass that annotates for each loops and functions with the free
22
// variables that they contain.
33

4-
import int;
4+
import std::{int};
55
import std::map::*;
6-
import option::*;
6+
import std::option::*;
77
import syntax::{ast, ast_util, visit};
88
import middle::resolve;
99
import syntax::codemap::span;
@@ -101,7 +101,7 @@ fn get_freevars(tcx: ty::ctxt, fid: ast::node_id) -> freevar_info {
101101
}
102102
}
103103
fn has_freevars(tcx: ty::ctxt, fid: ast::node_id) -> bool {
104-
ret vec::len(*get_freevars(tcx, fid)) != 0u;
104+
ret std::vec::len(*get_freevars(tcx, fid)) != 0u;
105105
}
106106

107107
// Local Variables:

trunk/src/comp/middle/gc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import middle::trans;
66
import middle::trans::{get_tydesc, tps_normal};
77
import middle::trans_common::*;
88
import middle::ty;
9-
import option::none;
10-
import str;
9+
import std::option::none;
10+
import std::str;
1111

1212
import lll = lib::llvm::llvm;
1313
import bld = trans_build;

trunk/src/comp/middle/kind.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import option::{some, none};
1+
import std::option::{some, none};
22
import syntax::{visit, ast_util};
33
import syntax::ast::*;
44
import syntax::codemap::span;
@@ -64,7 +64,7 @@ fn check_expr(e: @expr, cx: ctx, v: visit::vt<ctx>) {
6464
let t = ty::expr_ty(cx.tcx, ex);
6565
let ty_fields = alt ty::struct(cx.tcx, t) { ty::ty_rec(f) { f } };
6666
for tf in ty_fields {
67-
if !vec::any({|f| f.node.ident == tf.ident}, fields) &&
67+
if !std::vec::any({|f| f.node.ident == tf.ident}, fields) &&
6868
ty::type_kind(cx.tcx, tf.mt.ty) == kind_noncopyable {
6969
cx.tcx.sess.span_err(ex.span,
7070
"copying a noncopyable value");

trunk/src/comp/middle/last_use.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import syntax::{visit, ast_util};
22
import syntax::ast::*;
33
import std::list::{list, nil, cons, tail};
4-
import core::{vec, option};
5-
import std::list;
4+
import std::{vec, list, option};
65

76
// Last use analysis pass.
87
//

trunk/src/comp/middle/mut.rs

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

trunk/src/comp/middle/resolve.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ import std::map::{new_int_hash, new_str_hash};
1111
import syntax::codemap::span;
1212
import syntax::visit;
1313
import visit::vt;
14-
import core::{vec, option, str};
15-
import std::list;
14+
import std::{vec, list, option, str};
1615
import std::map::hashmap;
1716
import std::list::{list, nil, cons};
18-
import option::{some, none, is_none};
17+
import std::option::{some, none, is_none};
1918
import syntax::print::pprust::*;
2019

2120
export resolve_crate;

trunk/src/comp/middle/shape.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import syntax::ast_util::dummy_sp;
1414
import syntax::util::interner;
1515
import util::common;
1616

17-
import core::{vec, str};
17+
import std::{vec, str};
1818
import std::map::hashmap;
19-
import option::{none, some};
19+
import std::option::{none, some};
2020

2121
import ty_ctxt = middle::ty::ctxt;
2222

0 commit comments

Comments
 (0)