Skip to content

Commit 65693b8

Browse files
committed
---
yaml --- r: 23235 b: refs/heads/master c: fa0e96e h: refs/heads/master i: 23233: 8845882 23231: f5c7f71 v: v3
1 parent a7a2f29 commit 65693b8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: ccd36439f70814073c567bb22fdbcaafcf970b16
2+
refs/heads/master: fa0e96e0f70c428aa80872205eb929b3b1dfea13
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libcore/float.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import f64::{lgamma, ln, log_radix, ln1p, log10, log2, ilog_radix};
4141
import f64::{modf, pow, round, sinh, tanh, tgamma, trunc};
4242
import f64::signbit;
4343
import f64::{j0, j1, jn, y0, y1, yn};
44+
import num::from_int;
4445

4546
const NaN: float = 0.0/0.0;
4647

@@ -523,7 +524,7 @@ fn test_traits() {
523524
fn test<U:num::Num>(ten: &U) {
524525
assert (ten.to_int() == 10);
525526

526-
let two = from_int(2);
527+
let two: U = from_int(2);
527528
assert (two.to_int() == 2);
528529

529530
assert (ten.add(two) == from_int(12));

trunk/src/libcore/int-template.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import T = inst::T;
22
import cmp::{Eq, Ord};
3+
import num::from_int;
34

45
export min_value, max_value;
56
export min, max;
@@ -238,7 +239,7 @@ fn test_interfaces() {
238239
fn test<U:num::Num>(ten: U) {
239240
assert (ten.to_int() == 10);
240241

241-
let two = from_int(2);
242+
let two: U = from_int(2);
242243
assert (two.to_int() == 2);
243244

244245
assert (ten.add(two) == from_int(12));

0 commit comments

Comments
 (0)