未验证 提交 e6495d12 编写于 作者: K kennytm 提交者: GitHub

Rollup merge of #50958 - KiChjang:nit-50697, r=pnkfelix

Micro-optimization on PR#50697

We should stop iterating through the indices in the `init_path_map` once we've already found a match for the local.

r? @nikomatsakis or @pnkfelix
......@@ -1853,6 +1853,7 @@ fn add_used_mut<'d>(
for index in ii {
if flow_state.ever_inits.contains(index) {
self.used_mut.insert(*local);
break;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册