rust/compiler/rustc_metadata
Yuki Okushi 598d189e9b
Rollup merge of #80643 - LingMan:unwrap, r=oli-obk
Move variable into the only branch where it is relevant

At the `if` branch `filter` (the `let` binding) is `None` iff `filter` (the parameter) was `None`.
We can branch on the parameter, move the binding into the `if`, and the complexity of handling
`Option<Option<_>` largely dissolves.

`@rustbot` modify labels +C-cleanup +T-compiler

Note: I have no idea how hot this code is. If this method frequently gets called with a `None` filter, there might be a small perf improvement.
2021-01-05 09:52:44 +09:00
..
src Rollup merge of #80643 - LingMan:unwrap, r=oli-obk 2021-01-05 09:52:44 +09:00
Cargo.toml Don't query unstable data when staged_api is off 2020-09-13 02:10:39 +02:00