about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2017-08-01 11:57:26 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2017-08-01 11:57:26 +0300
commitce0ca763808f4b5d153aaa2787ea253286b449ef (patch)
tree64720062e2ae9d85ddd912afc3d2079365887d75
parent5b99523de9cb362a2328829959618aef0becb38e (diff)
downloadrust-ce0ca763808f4b5d153aaa2787ea253286b449ef.tar.gz
rust-ce0ca763808f4b5d153aaa2787ea253286b449ef.zip
pacify the merciless tidy
-rw-r--r--src/librustc_mir/build/scope.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/build/scope.rs b/src/librustc_mir/build/scope.rs
index bf39e52bd1b..ccba87a4d26 100644
--- a/src/librustc_mir/build/scope.rs
+++ b/src/librustc_mir/build/scope.rs
@@ -386,8 +386,8 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
 
         // If we are emitting a `drop` statement, we need to have the cached
         // diverge cleanup pads ready in case that drop panics.
-        let may_panic =
-            self.scopes[(len - scope_count)..].iter().any(|s| s.drops.iter().any(|s| s.kind.may_panic()));
+        let may_panic = self.scopes[(len - scope_count)..].iter()
+            .any(|s| s.drops.iter().any(|s| s.kind.may_panic()));
         if may_panic {
             self.diverge_cleanup();
         }