mozilla/rust — pull request #3188 by cpeterso (2012-08-13 01:31:31+00:00)
Title: core: Export f32::ge(), f64::ge(), and float::ge()

Without this fix, the following program fails to compile because the ge() function is not exported from the f32, f64, or float modules:

fn main() {
f32::lt(0f32, 0f32);
f32::le(0f32, 0f32);
f32::eq(0f32, 0f32);
f32::ne(0f32, 0f32);
f32::ge(0f32, 0f32);
f32::gt(0f32, 0f32);

f64::lt(0f64, 0f64);
f64::le(0f64, 0f64);
f64::eq(0f64, 0f64);
f64::ne(0f64, 0f64);
f64::ge(0f64, 0f64);
f64::gt(0f64, 0f64);

float::lt(0f64, 0f64);
float::le(0f64, 0f64);
float::eq(0f64, 0f64);
float::ne(0f64, 0f64);
float::ge(0f64, 0f64);
float::gt(0f64, 0f64);
}

test.rs:6:4: 6:11 error: unresolved name: f32::ge
test.rs:6 f32::ge(0f32, 0f32);
^~~~~~~
test.rs:6:4: 6:11 error: unresolved name: f32::ge
test.rs:6 f32::ge(0f32, 0f32);
^~~~~~~
test.rs:13:4: 13:11 error: unresolved name: f64::ge
test.rs:13 f64::ge(0f64, 0f64);
^~~~~~~
test.rs:13:4: 13:11 error: unresolved name: f64::ge
test.rs:13 f64::ge(0f64, 0f64);
^~~~~~~
test.rs:20:4: 20:13 error: unresolved name: float::ge
test.rs:20 float::ge(0f64, 0f64);
^~~~~~~~~
test.rs:20:4: 20:13 error: unresolved name: float::ge
test.rs:20 float::ge(0f64, 0f64);
^~~~~~~~~
error: aborting due to 6 previous errors