diff --git a/src/librustc_mir/build/scope.rs b/src/librustc_mir/build/scope.rs index bf39e52bd1b283405f063aec4aff0b107d8a32c4..ccba87a4d26a69e4c632a551982187d22cbe726f 100644 --- a/src/librustc_mir/build/scope.rs +++ b/src/librustc_mir/build/scope.rs @@ -386,8 +386,8 @@ pub fn exit_scope(&mut self, // 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(); }