Skip to content

Commit 00b93f8

Browse files
mbrubeckbrson
authored andcommitted
---
yaml --- r: 5981 b: refs/heads/master c: 5d6fe1a h: refs/heads/master i: 5979: feb92a8 v: v3
1 parent c3b894e commit 00b93f8

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
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: 50d99ec32ce197fb3c355d7cd88ace82e538790e
2+
refs/heads/master: 5d6fe1a533db9ec7fc5c640697b289389dc62221

trunk/src/comp/back/rpath.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import std::fs;
33
import std::os_fs;
44
import std::vec;
55
import std::map;
6+
import std::math;
67
import std::str;
78
import std::uint;
89
import metadata::cstore;
@@ -128,7 +129,7 @@ fn get_relative_to(abs1: fs::path, abs2: fs::path) -> fs::path {
128129
assert len1 > 0u;
129130
assert len2 > 0u;
130131

131-
let max_common_path = uint::min(len1, len2) - 1u;
132+
let max_common_path = math::min(len1, len2) - 1u;
132133
let start_idx = 0u;
133134
while start_idx < max_common_path
134135
&& split1[start_idx] == split2[start_idx] {

trunk/src/comp/middle/ty.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import std::box;
66
import std::ufind;
77
import std::map;
88
import std::map::hashmap;
9+
import std::math;
910
import std::option;
1011
import std::option::none;
1112
import std::option::some;
@@ -1812,7 +1813,7 @@ mod unify {
18121813
// Unifies two sets.
18131814
fn union(cx: @ctxt, set_a: uint, set_b: uint,
18141815
variance: variance) -> union_result {
1815-
ufind::grow(cx.vb.sets, uint::max(set_a, set_b) + 1u);
1816+
ufind::grow(cx.vb.sets, math::max(set_a, set_b) + 1u);
18161817
let root_a = ufind::find(cx.vb.sets, set_a);
18171818
let root_b = ufind::find(cx.vb.sets, set_b);
18181819

trunk/src/fuzzer/fuzzer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std;
22
use rustc;
33

4-
import std::{fs, io, getopts, vec, str, int, uint, option};
4+
import std::{fs, io, getopts, math, vec, str, int, uint, option};
55
import std::getopts::{optopt, opt_present, opt_str};
66
import std::io::stdout;
77

@@ -242,9 +242,9 @@ fn check_variants_T<T>(
242242
let L = vec::len(things);
243243

244244
if L < 100u {
245-
under(uint::min(L, 20u)) {|i|
245+
under(math::min(L, 20u)) {|i|
246246
log_err "Replacing... #" + uint::str(i);
247-
under(uint::min(L, 30u)) {|j|
247+
under(math::min(L, 30u)) {|j|
248248
log_err "With... " + stringifier(@things[j]);
249249
let crate2 = @replacer(crate, i, things[j], cx.mode);
250250
// It would be best to test the *crate* for stability, but testing the

trunk/src/lib/uint.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ pure fn ge(x: uint, y: uint) -> bool { ret x >= y; }
5555
/* Predicate: gt */
5656
pure fn gt(x: uint, y: uint) -> bool { ret x > y; }
5757

58-
fn max(x: uint, y: uint) -> uint { if x > y { ret x; } ret y; }
59-
60-
fn min(x: uint, y: uint) -> uint { if x > y { ret y; } ret x; }
61-
6258
/*
6359
Function: range
6460

0 commit comments

Comments
 (0)