about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOli Scherer <github35764891676564198441@oli-obk.de>2021-01-28 17:49:40 +0100
committerGitHub <noreply@github.com>2021-01-28 17:49:40 +0100
commit85ad773049536d7fed9a94ae0ac74f97135c8655 (patch)
treef6b6a557a78b424f43aaa011104265d97f887db9
parent899aae465eb4ef295dc1eeb2603f744568e0768c (diff)
downloadrust-85ad773049536d7fed9a94ae0ac74f97135c8655.tar.gz
rust-85ad773049536d7fed9a94ae0ac74f97135c8655.zip
Add missing brace
-rw-r--r--compiler/rustc_passes/src/dead.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/dead.rs b/compiler/rustc_passes/src/dead.rs
index 3902557e9b5..0d096a0556b 100644
--- a/compiler/rustc_passes/src/dead.rs
+++ b/compiler/rustc_passes/src/dead.rs
@@ -37,7 +37,7 @@ fn should_explore(tcx: TyCtxt<'_>, hir_id: hir::HirId) -> bool {
     )
 }
 
-fn base_expr<'a>(mut expr: &'a hir::Expr<'a>) -> &'a hir::Expr<'a>
+fn base_expr<'a>(mut expr: &'a hir::Expr<'a>) -> &'a hir::Expr<'a> {
     loop {
         match expr.kind {
             hir::ExprKind::Field(base, ..) => expr = base,