forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 519d892
Auto merge of rust-lang#121387 - oli-obk:eager_const_failures_regression, r=lcnr
Avoid some unnecessary query invocations.
Specifically this inlines `const_eval_poly` and avoids computing the generic params, the param env, normalizing the param env and erasing lifetimes on everything.
should fix the perf regression from rust-lang#121087 File tree
2 files changed
+22
-2
lines changed- compiler/rustc_hir_analysis/src
- tests/ui/generic-const-items
2 files changed
+22
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
104 | + | ||
104 | 105 |
| |
105 | - | ||
106 | + | ||
106 | 107 |
| |
107 | 108 |
| |
108 | 109 |
| |
| |||
186 | 187 |
| |
187 | 188 |
| |
188 | 189 |
| |
189 | - | ||
190 | + | ||
191 | + | ||
192 | + | ||
193 | + | ||
194 | + | ||
195 | + | ||
190 | 196 |
| |
191 | 197 |
| |
192 | 198 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + |
0 commit comments