Skip to content

Commit

Permalink
pacify the merciless tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
arielb1 committed Aug 1, 2017
1 parent 5b99523 commit ce0ca76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_mir/build/scope.rs
Expand Up @@ -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();
}
Expand Down

0 comments on commit ce0ca76

Please sign in to comment.