@@ -505,7 +505,7 @@ fn visit_expr(ir: &mut IrMaps, expr: &Expr) {
505505 ast:: ExprBlock ( ..) | ast:: ExprAssign ( ..) | ast:: ExprAssignOp ( ..) |
506506 ast:: ExprMac ( ..) | ast:: ExprStruct ( ..) | ast:: ExprRepeat ( ..) |
507507 ast:: ExprParen ( ..) | ast:: ExprInlineAsm ( ..) | ast:: ExprBox ( ..) |
508- ast:: ExprRange ( ..) => {
508+ ast:: ExprRange ( ..) | ast :: ExprType ( .. ) => {
509509 visit:: walk_expr ( ir, expr) ;
510510 }
511511 }
@@ -1188,6 +1188,7 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
11881188 ast:: ExprBox ( None , ref e) |
11891189 ast:: ExprAddrOf ( _, ref e) |
11901190 ast:: ExprCast ( ref e, _) |
1191+ ast:: ExprType ( ref e, _) |
11911192 ast:: ExprUnary ( _, ref e) |
11921193 ast:: ExprParen ( ref e) => {
11931194 self . propagate_through_expr ( & * * e, succ)
@@ -1468,7 +1469,7 @@ fn check_expr(this: &mut Liveness, expr: &Expr) {
14681469 ast:: ExprBlock ( ..) | ast:: ExprMac ( ..) | ast:: ExprAddrOf ( ..) |
14691470 ast:: ExprStruct ( ..) | ast:: ExprRepeat ( ..) | ast:: ExprParen ( ..) |
14701471 ast:: ExprClosure ( ..) | ast:: ExprPath ( ..) | ast:: ExprBox ( ..) |
1471- ast:: ExprRange ( ..) | ast:: ExprQPath ( ..) => {
1472+ ast:: ExprRange ( ..) | ast:: ExprQPath ( ..) | ast :: ExprType ( .. ) => {
14721473 visit:: walk_expr ( this, expr) ;
14731474 }
14741475 ast:: ExprIfLet ( ..) => {
0 commit comments