Commit bd91610
committed
Auto merge of #140428 - tgross35:replace-intrinsic-vec, r=<try>
hir: Don't allocate for intrinsic inputs
This isn't exactly a hot path, but it does allocate for data with a statically known length. `arrayvec` is already in the crate graph, so use it here to avoid any allocation.
r? `@ghost`File tree
3 files changed
+231
-199
lines changed- compiler/rustc_hir_analysis
- src/check
3 files changed
+231
-199
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3740 | 3740 | | |
3741 | 3741 | | |
3742 | 3742 | | |
| 3743 | + | |
3743 | 3744 | | |
3744 | 3745 | | |
3745 | 3746 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments