]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_back/svh.rs
Rollup merge of #31904 - bluss:writer-formatter-error, r=alexcrichton
[rust.git] / src / librustc_back / svh.rs
index a5df0b94b337400334ac91578659f89d157e794c..b29116309912aab334ed6542efc2a054b8e819a7 100644 (file)
@@ -232,8 +232,9 @@ pub enum SawExprComponent<'a> {
         SawExprTup,
         SawExprBinary(hir::BinOp_),
         SawExprUnary(hir::UnOp),
-        SawExprLit(ast::Lit_),
+        SawExprLit(ast::LitKind),
         SawExprCast,
+        SawExprType,
         SawExprIf,
         SawExprWhile,
         SawExprMatch,
@@ -262,6 +263,7 @@ fn saw_expr<'a>(node: &'a Expr_) -> SawExprComponent<'a> {
             ExprUnary(op, _)         => SawExprUnary(op),
             ExprLit(ref lit)         => SawExprLit(lit.node.clone()),
             ExprCast(..)             => SawExprCast,
+            ExprType(..)             => SawExprType,
             ExprIf(..)               => SawExprIf,
             ExprWhile(..)            => SawExprWhile,
             ExprLoop(_, id)          => SawExprLoop(id.map(|id| id.name.as_str())),