]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #97399 - SparrowLii:arg_index, r=oli-obk
authorYuki Okushi <jtitor@2k36.org>
Wed, 1 Jun 2022 14:36:47 +0000 (23:36 +0900)
committerGitHub <noreply@github.com>
Wed, 1 Jun 2022 14:36:47 +0000 (23:36 +0900)
commit9c61f817eb6503e5efb7f92b545073c51c2549e3
tree0de5f3f5417025b15e3c061e1e8cfd9f871f9685
parent2ab919ad9c993634bccae78504524f505ce1e5c0
parent1b4714f587e9e364714c9a4b771e6e7fe6697152
Rollup merge of #97399 - SparrowLii:arg_index, r=oli-obk

simplify code of finding arg index in `opt_const_param_of`

From the FIXME in the impl of `opt_const_param_of`. Part of the code is simplified by blending two iterator statements and using `let...else` statement.