about summary refs log tree commit diff
diff options
context:
space:
mode:
authormark <markm@cs.wisc.edu>2020-04-24 14:48:10 -0500
committermark <markm@cs.wisc.edu>2020-04-24 14:48:10 -0500
commit258ebfe4765d370326b9996bca022004c01a79b6 (patch)
treec8926ab68411d84174a4e0a2b90a9caf48aa82d8
parent087c0d7ea9c6ceac2d9afef90e80416ba5f6e2eb (diff)
downloadrust-258ebfe4765d370326b9996bca022004c01a79b6.tar.gz
rust-258ebfe4765d370326b9996bca022004c01a79b6.zip
tidy
-rw-r--r--src/librustc_typeck/check/mod.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs
index b18546cf321..b14aa8fcfb1 100644
--- a/src/librustc_typeck/check/mod.rs
+++ b/src/librustc_typeck/check/mod.rs
@@ -4974,10 +4974,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
                 }
                 Some(Node::Ctor(hir::VariantData::Tuple(fields, _))) => {
                     sugg_call = fields.iter().map(|_| "_").collect::<Vec<_>>().join(", ");
-                    match def_id
-                        .as_local()
-                        .map(|def_id| hir.def_kind(def_id))
-                    {
+                    match def_id.as_local().map(|def_id| hir.def_kind(def_id)) {
                         Some(DefKind::Ctor(hir::def::CtorOf::Variant, _)) => {
                             msg = "instantiate this tuple variant";
                         }