提交 ce0ca763 编写于 作者: A Ariel Ben-Yehuda

pacify the merciless tidy

上级 5b99523d
...@@ -386,8 +386,8 @@ pub fn exit_scope(&mut self, ...@@ -386,8 +386,8 @@ pub fn exit_scope(&mut self,
// If we are emitting a `drop` statement, we need to have the cached // If we are emitting a `drop` statement, we need to have the cached
// diverge cleanup pads ready in case that drop panics. // diverge cleanup pads ready in case that drop panics.
let may_panic = let may_panic = self.scopes[(len - scope_count)..].iter()
self.scopes[(len - scope_count)..].iter().any(|s| s.drops.iter().any(|s| s.kind.may_panic())); .any(|s| s.drops.iter().any(|s| s.kind.may_panic()));
if may_panic { if may_panic {
self.diverge_cleanup(); self.diverge_cleanup();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册