Commit fcac501
committed
Auto merge of rust-lang#151015 - JonathanBrouwer:fix-cratelevel-perf, r=jdonszelmann
Fix perf of `check_crate_level` refactor
Fixes the perf of rust-lang#150930
The problem is that `allowed_targets` allocates a `Vec`
(also moves a comment around to a move useful place)
r? @jdonszelmann1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
149 | | - | |
150 | | - | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
0 commit comments