]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #100328 - davidtwco:perf-implications, r=nnethercote
authorbors <bors@rust-lang.org>
Fri, 12 Aug 2022 13:51:26 +0000 (13:51 +0000)
committerbors <bors@rust-lang.org>
Fri, 12 Aug 2022 13:51:26 +0000 (13:51 +0000)
passes: load `defined_lib_features` query less

Hopefully addresses the perf regressions from #99212 (see #99905).

Re-structure the stability checks for library features to avoid calling `defined_lib_features` for any more crates than necessary for each of the implications or local feature attributes that need validation.

r? `@ghost` (just checking perf at first)

1  2 
compiler/rustc_passes/src/stability.rs