mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Check the simplified type used in check-expr in trans.
This commit is contained in:
@@ -2066,7 +2066,7 @@ let trans_visitor
|
||||
List.iter patch fwd_jmps
|
||||
|
||||
and trans_check_expr (id:node_id) (e:Ast.expr) : unit =
|
||||
match expr_type cx e with
|
||||
match simplified_ty (expr_type cx e) with
|
||||
Ast.TY_bool ->
|
||||
let fwd_jmps = trans_cond false e in
|
||||
trans_cond_fail (Fmt.fmt_to_str Ast.fmt_expr e) fwd_jmps
|
||||
|
||||
Reference in New Issue
Block a user