librustc: Remove match arm since we don't allow enum to float casts.
This commit is contained in:
parent
7cce75f839
commit
e646188f66
1 changed files with 1 additions and 2 deletions
|
|
@ -484,8 +484,7 @@ fn const_expr_unadjusted(cx: &CrateContext, e: &ast::Expr,
|
|||
if ty::type_is_signed(ety) { llvm::LLVMConstFPToSI(v, llty.to_ref()) }
|
||||
else { llvm::LLVMConstFPToUI(v, llty.to_ref()) }
|
||||
}
|
||||
(expr::cast_enum, expr::cast_integral) |
|
||||
(expr::cast_enum, expr::cast_float) => {
|
||||
(expr::cast_enum, expr::cast_integral) => {
|
||||
let repr = adt::represent_type(cx, basety);
|
||||
let discr = adt::const_get_discrim(cx, &*repr, v);
|
||||
let iv = C_integral(cx.int_type, discr, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue