]> git.lizzy.rs Git - rust.git/commitdiff
fix clippy breakage due to https://github.com/rust-lang/rust/pull/52602
authorMatthias Krüger <matthias.krueger@famsik.de>
Thu, 23 Aug 2018 19:41:30 +0000 (21:41 +0200)
committerMatthias Krüger <matthias.krueger@famsik.de>
Thu, 23 Aug 2018 19:41:30 +0000 (21:41 +0200)
clippy_lints/src/utils/sugg.rs

index d513fb8bced702df8ae220a275a3dfc4df80df6e..3d587a72eec471c7dd499f2f6828ffcd3b1e71be 100644 (file)
@@ -105,7 +105,6 @@ pub fn ast(cx: &EarlyContext<'_>, expr: &ast::Expr, default: &'a str) -> Self {
             ast::ExprKind::Block(..) |
             ast::ExprKind::Break(..) |
             ast::ExprKind::Call(..) |
-            ast::ExprKind::Catch(..) |
             ast::ExprKind::Continue(..) |
             ast::ExprKind::Yield(..) |
             ast::ExprKind::Field(..) |
@@ -122,6 +121,7 @@ pub fn ast(cx: &EarlyContext<'_>, expr: &ast::Expr, default: &'a str) -> Self {
             ast::ExprKind::Ret(..) |
             ast::ExprKind::Struct(..) |
             ast::ExprKind::Try(..) |
+            ast::ExprKind::TryBlock(..) |
             ast::ExprKind::Tup(..) |
             ast::ExprKind::Array(..) |
             ast::ExprKind::While(..) |