From bbfa08d9474bd08b03718639ad82315d66097e6e Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 19 Mar 2012 14:28:15 -0700 Subject: rustc: Stop generating the flag_none #fmt flag. Issue #1993 --- src/rustc/syntax/ext/fmt.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/rustc') diff --git a/src/rustc/syntax/ext/fmt.rs b/src/rustc/syntax/ext/fmt.rs index 29b19a2d66c..d12e36685bf 100644 --- a/src/rustc/syntax/ext/fmt.rs +++ b/src/rustc/syntax/ext/fmt.rs @@ -68,13 +68,6 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span, pieces: [piece], args: [@ast::expr]) } flagexprs += [make_rt_path_expr(cx, sp, fstr)]; } - // FIXME: 0-length vectors can't have their type inferred - // through the rec that these flags are a member of, so - // this is a hack placeholder flag - - if vec::len::<@ast::expr>(flagexprs) == 0u { - flagexprs += [make_rt_path_expr(cx, sp, "flag_none")]; - } ret mk_vec_e(cx, sp, flagexprs); } fn make_count(cx: ext_ctxt, sp: span, cnt: count) -> @ast::expr { -- cgit 1.4.1-3-g733a5