Skip to content

Commit 5a5c065

Browse files
committed
---
yaml --- r: 11975 b: refs/heads/master c: bbfa08d h: refs/heads/master i: 11973: 595215a 11971: 344ffc4 11967: aec07de v: v3
1 parent e85675e commit 5a5c065

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
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: a0c6ad0c510ca8b6b810ebb36bfa42c4a29b62a2
2+
refs/heads/master: bbfa08d9474bd08b03718639ad82315d66097e6e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/libcore/extfmt.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,7 @@ mod rt {
269269
flag_space_for_sign,
270270
flag_sign_always,
271271
flag_alternate,
272-
273-
274-
// FIXME: This is a hack to avoid creating 0-length vec exprs,
275-
// which have some difficulty typechecking currently. See
276-
// comments in front::extfmt::make_flags
277-
// (once #1993 is addressed, this won't be necessary)
272+
// FIXME(1993): This is no longer needed. Remove after a snapshot
278273
flag_none,
279274
}
280275
enum count { count_is(int), count_implied, }

trunk/src/rustc/syntax/ext/fmt.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,6 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span, pieces: [piece], args: [@ast::expr])
6868
}
6969
flagexprs += [make_rt_path_expr(cx, sp, fstr)];
7070
}
71-
// FIXME: 0-length vectors can't have their type inferred
72-
// through the rec that these flags are a member of, so
73-
// this is a hack placeholder flag
74-
75-
if vec::len::<@ast::expr>(flagexprs) == 0u {
76-
flagexprs += [make_rt_path_expr(cx, sp, "flag_none")];
77-
}
7871
ret mk_vec_e(cx, sp, flagexprs);
7972
}
8073
fn make_count(cx: ext_ctxt, sp: span, cnt: count) -> @ast::expr {

0 commit comments

Comments
 (0)