Skip to content

Commit

Permalink
Rewrite exhaustiveness checker
Browse files Browse the repository at this point in the history
Issue #2111
  • Loading branch information
marijnh committed Apr 25, 2012
1 parent c9e3f38 commit 9f99c32
Show file tree
Hide file tree
Showing 15 changed files with 257 additions and 221 deletions.
1 change: 0 additions & 1 deletion src/librustsyntax/ast_util.rs
Expand Up @@ -102,7 +102,6 @@ fn unop_to_str(op: unop) -> str {
deref { ret "*"; } deref { ret "*"; }
not { ret "!"; } not { ret "!"; }
neg { ret "-"; } neg { ret "-"; }
addr_of { ret "&"; }
} }
} }
Expand Down
1 change: 0 additions & 1 deletion src/librustsyntax/ext/fmt.rs
Expand Up @@ -190,7 +190,6 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span, pieces: [piece], args: [@ast::expr])
ty_octal { ret make_conv_call(cx, arg.span, "uint", cnv, arg); } ty_octal { ret make_conv_call(cx, arg.span, "uint", cnv, arg); }
ty_float { ret make_conv_call(cx, arg.span, "float", cnv, arg); } ty_float { ret make_conv_call(cx, arg.span, "float", cnv, arg); }
ty_poly { ret make_conv_call(cx, arg.span, "poly", cnv, arg); } ty_poly { ret make_conv_call(cx, arg.span, "poly", cnv, arg); }
_ { cx.span_unimpl(sp, unsupported); }
} }
} }
fn log_conv(c: conv) { fn log_conv(c: conv) {
Expand Down
1 change: 0 additions & 1 deletion src/libstd/net.rs
Expand Up @@ -17,7 +17,6 @@ fn format_addr(ip: ip_addr) -> str {
ipv4(a, b, c, d) { ipv4(a, b, c, d) {
#fmt["%u.%u.%u.%u", a as uint, b as uint, c as uint, d as uint] #fmt["%u.%u.%u.%u", a as uint, b as uint, c as uint, d as uint]
} }
_ { fail "Unsupported address type"; }
} }
} }


Expand Down
2 changes: 1 addition & 1 deletion src/rustc/driver/driver.rs
Expand Up @@ -25,7 +25,7 @@ fn default_configuration(sess: session, argv0: str, input: str) ->
session::os_macos { "libc.dylib" } session::os_macos { "libc.dylib" }
session::os_linux { "libc.so.6" } session::os_linux { "libc.so.6" }
session::os_freebsd { "libc.so.7" } session::os_freebsd { "libc.so.7" }
_ { "libc.so" } // _ { "libc.so" }
}; };


let mk = attr::mk_name_value_item_str; let mk = attr::mk_name_value_item_str;
Expand Down

0 comments on commit 9f99c32

Please sign in to comment.