Skip to content

Commit 9183e3f

Browse files
committed
---
yaml --- r: 4906 b: refs/heads/master c: 18576e5 h: refs/heads/master v: v3
1 parent 7b056d8 commit 9183e3f

File tree

9 files changed

+11
-50
lines changed

9 files changed

+11
-50
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: c1f239424534af38fd1dfab861fab6813c1c9c97
2+
refs/heads/master: 18576e55f72b9bdcb0998870377e09b02b033f8b

trunk/src/comp/metadata/encoder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ fn encode_type(ecx: &@encode_ctxt, ebml_w: &ebml::writer, typ: ty::t) {
202202
@{ds: f,
203203
tcx: ecx.ccx.tcx,
204204
abbrevs: tyencode::ac_use_abbrevs(ecx.type_abbrevs)};
205-
tyencode::enc_ty(io::new_writer_(ebml_w.writer), ty_str_ctxt, typ);
205+
tyencode::enc_ty(io::new_writer(ebml_w.writer), ty_str_ctxt, typ);
206206
ebml::end_tag(ebml_w);
207207
}
208208

@@ -413,7 +413,7 @@ fn create_index<T>(index: &[entry<T>], hash_fn: fn(&T) -> uint) ->
413413

414414
fn encode_index<T>(ebml_w: &ebml::writer, buckets: &[@[entry<T>]],
415415
write_fn: fn(&io::writer, &T)) {
416-
let writer = io::new_writer_(ebml_w.writer);
416+
let writer = io::new_writer(ebml_w.writer);
417417
ebml::start_tag(ebml_w, tag_index);
418418
let bucket_locs: [uint] = [];
419419
ebml::start_tag(ebml_w, tag_index_buckets);

trunk/src/lib/io.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,6 @@ fn file_reader(path: str) -> reader {
179179
}
180180

181181

182-
// FIXME: Remove me once objects are exported.
183-
fn new_reader_(bufr: buf_reader) -> reader { ret new_reader(bufr); }
184-
185-
186182
// Byte buffer readers
187183

188184
// TODO: mutable? u8, but this fails with rustboot.
@@ -355,10 +351,6 @@ obj new_writer(out: buf_writer) {
355351
}
356352
}
357353

358-
359-
// FIXME: Remove me once objects are exported.
360-
fn new_writer_(out: buf_writer) -> writer { ret new_writer(out); }
361-
362354
fn file_writer(path: str, flags: &[fileflag]) -> writer {
363355
ret new_writer(file_buf_writer(path, flags));
364356
}

trunk/src/lib/test.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ type opt_res = either::t<test_opts, str>;
6666
// Parses command line arguments into test options
6767
fn parse_opts(args: &[str]) : vec::is_not_empty(args) -> opt_res {
6868

69-
// FIXME (#649): Shouldn't have to check here
70-
check (vec::is_not_empty(args));
7169
let args_ = vec::tail(args);
7270
let opts = [getopts::optflag("ignored")];
7371
let match =

trunk/src/lib/uint.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ iter range(lo: uint, hi: uint) -> uint {
3232
}
3333

3434
fn next_power_of_two(n: uint) -> uint {
35-
// FIXME change |* uint(4)| below to |* uint(8) / uint(2)| and watch the
36-
// world explode.
37-
3835
let halfbits: uint = sys::rustrt::size_of::<uint>() * 4u;
3936
let tmp: uint = n - 1u;
4037
let shift: uint = 1u;

trunk/src/test/run-pass/item-attributes.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ mod test_literals {
201201
#[mach_int = 100u32];
202202
#[float = 1.0];
203203
#[mach_float = 1.0f32];
204-
// FIXME (#622): Can't parse a nil literal here
205-
//#[nil = ()];
204+
#[nil = ()];
206205
#[bool = true];
207206
mod m { }
208207
}

trunk/src/test/run-pass/tag.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ tag colour { red(int, int); green; }
77
fn f() {
88
let x = red(1, 2);
99
let y = green;
10-
// FIXME: needs structural equality test working.
11-
// assert (x != y);
12-
10+
assert (x != y);
1311
}
1412

1513
fn main() { f(); }

trunk/src/test/stdtest/bitv.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ fn test_0_elements() {
99
let exp;
1010
act = bitv::create(0u, false);
1111
exp = vec::init_elt::<uint>(0u, 0u);
12-
// FIXME: why can't I write vec::<uint>()?
13-
1412
assert (bitv::eq_vec(act, exp));
1513
}
1614

trunk/src/test/stdtest/map.rs

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,13 @@ import std::map;
66
import std::str;
77
import std::uint;
88
import std::util;
9+
import std::option;
910

1011
#[test]
1112
fn test_simple() {
1213
log "*** starting test_simple";
1314
fn eq_uint(x: &uint, y: &uint) -> bool { ret x == y; }
14-
fn hash_uint(u: &uint) -> uint {
15-
// FIXME: can't use std::util::id since we'd be capturing a type
16-
// param, and presently we can't close items over type params.
17-
18-
ret u;
19-
}
20-
let hasher_uint: map::hashfn<uint> = hash_uint;
15+
let hasher_uint: map::hashfn<uint> = util::id;
2116
let eqer_uint: map::eqfn<uint> = eq_uint;
2217
let hasher_str: map::hashfn<str> = str::hash;
2318
let eqer_str: map::eqfn<str> = str::eq;
@@ -89,14 +84,8 @@ fn test_growth() {
8984
log "*** starting test_growth";
9085
let num_to_insert: uint = 64u;
9186
fn eq_uint(x: &uint, y: &uint) -> bool { ret x == y; }
92-
fn hash_uint(u: &uint) -> uint {
93-
// FIXME: can't use std::util::id since we'd be capturing a type
94-
// param, and presently we can't close items over type params.
95-
96-
ret u;
97-
}
9887
log "uint -> uint";
99-
let hasher_uint: map::hashfn<uint> = hash_uint;
88+
let hasher_uint: map::hashfn<uint> = util::id;
10089
let eqer_uint: map::eqfn<uint> = eq_uint;
10190
let hm_uu: map::hashmap<uint, uint> =
10291
map::mk_hashmap::<uint, uint>(hasher_uint, eqer_uint);
@@ -194,23 +183,13 @@ fn test_removal() {
194183
log "removing evens";
195184
i = 0u;
196185
while i < num_to_insert {
197-
/**
198-
* FIXME (issue #150): we want to check the removed value as in the
199-
* following:
200-
201-
let v: util.option<uint> = hm.remove(i);
186+
let v = hm.remove(i);
202187
alt (v) {
203-
case (util.some::<uint>(u)) {
188+
option::some(u) {
204189
assert (u == (i * i));
205190
}
206-
case (util.none::<uint>()) { fail; }
191+
option::none. { fail; }
207192
}
208-
209-
* but we util.option is a tag type so util.some and util.none are
210-
* off limits until we parse the dwarf for tag types.
211-
*/
212-
213-
hm.remove(i);
214193
i += 2u;
215194
}
216195
assert (hm.size() == num_to_insert / 2u);

0 commit comments

Comments
 (0)