]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/unused_label.rs
Rustup to rustc 1.16.0-nightly (468227129 2017-01-03): Body fixes for rustup
[rust.git] / clippy_lints / src / unused_label.rs
index 9017fd6933e81b04f6e66bad4b7aa04217947ceb..5136a821c546f549fb854375f9b1a88b4ee8ac2f 100644 (file)
@@ -46,7 +46,7 @@ fn check_fn(
         cx: &LateContext<'a, 'tcx>,
         kind: FnKind<'tcx>,
         decl: &'tcx hir::FnDecl,
-        body: &'tcx hir::Expr,
+        body: &'tcx hir::Body,
         span: Span,
         fn_id: ast::NodeId
     ) {
@@ -58,7 +58,7 @@ fn check_fn(
             cx: cx,
             labels: HashMap::new(),
         };
-        walk_fn(&mut v, kind, decl, body.expr_id(), span, fn_id);
+        walk_fn(&mut v, kind, decl, body.id(), span, fn_id);
 
         for (label, span) in v.labels {
             span_lint(cx, UNUSED_LABEL, span, &format!("unused label `{}`", label));