Skip to content

Commit 9f99c32

Browse files
committed
Rewrite exhaustiveness checker
Issue #2111
1 parent c9e3f38 commit 9f99c32

File tree

15 files changed

+257
-221
lines changed

15 files changed

+257
-221
lines changed

src/librustsyntax/ast_util.rs

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ fn unop_to_str(op: unop) -> str {
102102
deref { ret "*"; }
103103
not { ret "!"; }
104104
neg { ret "-"; }
105-
addr_of { ret "&"; }
106105
}
107106
}
108107

src/librustsyntax/ext/fmt.rs

-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span, pieces: [piece], args: [@ast::expr])
190190
ty_octal { ret make_conv_call(cx, arg.span, "uint", cnv, arg); }
191191
ty_float { ret make_conv_call(cx, arg.span, "float", cnv, arg); }
192192
ty_poly { ret make_conv_call(cx, arg.span, "poly", cnv, arg); }
193-
_ { cx.span_unimpl(sp, unsupported); }
194193
}
195194
}
196195
fn log_conv(c: conv) {

src/libstd/net.rs

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ fn format_addr(ip: ip_addr) -> str {
1717
ipv4(a, b, c, d) {
1818
#fmt["%u.%u.%u.%u", a as uint, b as uint, c as uint, d as uint]
1919
}
20-
_ { fail "Unsupported address type"; }
2120
}
2221
}
2322

src/rustc/driver/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn default_configuration(sess: session, argv0: str, input: str) ->
2525
session::os_macos { "libc.dylib" }
2626
session::os_linux { "libc.so.6" }
2727
session::os_freebsd { "libc.so.7" }
28-
_ { "libc.so" }
28+
// _ { "libc.so" }
2929
};
3030

3131
let mk = attr::mk_name_value_item_str;

0 commit comments

Comments
 (0)