Skip to content

Commit 19e92b2

Browse files
committed
---
yaml --- r: 7043 b: refs/heads/master c: 1f71a0f h: refs/heads/master i: 7041: 69e84cd 7039: a565bce v: v3
1 parent 3f9ce06 commit 19e92b2

File tree

25 files changed

+772
-797
lines changed

25 files changed

+772
-797
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: 1f10ee365c840cb5d54fe4eb32659f09d29ace38
2+
refs/heads/master: 1f71a0f48d18d80ff3be6970d582c5a67f976329

trunk/src/comp/back/rpath.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ fn get_relative_to(abs1: fs::path, abs2: fs::path) -> fs::path {
129129
assert len1 > 0u;
130130
assert len2 > 0u;
131131

132-
let max_common_path = math::min(len1, len2) - 1u;
132+
let max_common_path = float::min(len1, len2) - 1u;
133133
let start_idx = 0u;
134134
while start_idx < max_common_path
135135
&& split1[start_idx] == split2[start_idx] {

trunk/src/comp/middle/trans.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5354,7 +5354,7 @@ fn collect_item(ccx: @crate_ctxt, abi: @mutable option::t<ast::native_abi>,
53545354
register_fn(ccx, i.span, new_pt, "obj_ctor", tps, ctor_id);
53555355
}
53565356
ast::item_impl(tps, _, _, methods) {
5357-
let name = ccx.names.next(i.ident);
5357+
let name = i.ident + int::str(i.id);
53585358
for m in methods {
53595359
register_fn(ccx, i.span, pt + [name, m.ident],
53605360
"impl_method", tps + m.tps, m.id);
@@ -5418,9 +5418,7 @@ fn trans_constant(ccx: @crate_ctxt, it: @ast::item, &&pt: [str],
54185418
ast::item_impl(tps, some(@{node: ast::ty_path(_, id), _}), _, ms) {
54195419
let i_did = ast_util::def_id_of_def(ccx.tcx.def_map.get(id));
54205420
let ty = ty::lookup_item_type(ccx.tcx, i_did).ty;
5421-
// FIXME[impl] use the same name as used in collect_items, for
5422-
// slightly more consistent symbol names?
5423-
let new_pt = pt + [ccx.names.next(it.ident)];
5421+
let new_pt = pt + [it.ident + int::str(it.id), "wrap"];
54245422
let extra_tps = vec::map(tps, {|p| param_bounds(ccx, p)});
54255423
let tbl = C_struct(vec::map(*ty::iface_methods(ccx.tcx, i_did), {|im|
54265424
alt vec::find(ms, {|m| m.ident == im.ident}) {

trunk/src/comp/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,7 @@ mod unify {
17651765
let vb = alt cx.st {
17661766
in_bindings(vb) { vb }
17671767
};
1768-
ufind::grow(vb.sets, math::max(set_a, set_b) + 1u);
1768+
ufind::grow(vb.sets, float::max(set_a, set_b) + 1u);
17691769
let root_a = ufind::find(vb.sets, set_a);
17701770
let root_b = ufind::find(vb.sets, set_b);
17711771

trunk/src/comp/middle/typeck.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2920,8 +2920,6 @@ mod dict {
29202920
bind_params(fcx, self_ty, n_tps)
29212921
} else { {vars: [], ty: self_ty} };
29222922
let im_bs = ty::lookup_item_type(tcx, im.did).bounds;
2923-
// FIXME[impl] don't do this in fcx (or make
2924-
// unify transactional by scrubbing bindings on fail)
29252923
alt unify::unify(fcx, ty, self_ty) {
29262924
ures_ok(_) {
29272925
if option::is_some(found) {

trunk/src/comp/util/common.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import math::{max, min};
1+
import core::{str, option};
2+
import core::float::{max, min};
23
import std::map::hashmap;
34
import option::{some};
45
import syntax::ast;

trunk/src/etc/cmathconsts.c

Lines changed: 0 additions & 92 deletions
This file was deleted.

trunk/src/fuzzer/fuzzer.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import core::{vec, str, int, uint, option, result};
12
import std::{fs, io};
23

34
import rustc::syntax::{ast, ast_util, fold, visit, codemap};
@@ -240,9 +241,9 @@ fn check_variants_T<copy T>(
240241
let L = vec::len(things);
241242

242243
if L < 100u {
243-
under(math::min(L, 20u)) {|i|
244+
under(float::min(L, 20u)) {|i|
244245
log(error, "Replacing... #" + uint::str(i));
245-
under(math::min(L, 30u)) {|j|
246+
under(float::min(L, 30u)) {|j|
246247
log(error, "With... " + stringifier(@things[j]));
247248
let crate2 = @replacer(crate, i, things[j], cx.mode);
248249
// It would be best to test the *crate* for stability, but testing the

trunk/src/libcore/bessel.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)