Commit d15ec79
review #3: fix remaining Result generic-param duplicates and consolidate
The previous fix changed only the lowerer's builtin_generic_type_params; two more
identical copies (hir.rs, checks/calls.rs — the latter drives the actual generic
substitution) still mapped Result -> [K,V] instead of [T,E], weakening
Result.map/map_error/and_then substitution. Fixed both, then consolidated all three
into a single text_util::builtin_generic_type_params so the names can't drift per
layer again.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 100f98f commit d15ec79
4 files changed
Lines changed: 21 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4847 | 4847 | | |
4848 | 4848 | | |
4849 | 4849 | | |
4850 | | - | |
4851 | | - | |
4852 | | - | |
4853 | | - | |
4854 | | - | |
4855 | | - | |
4856 | | - | |
4857 | | - | |
4858 | | - | |
4859 | | - | |
| 4850 | + | |
4860 | 4851 | | |
4861 | 4852 | | |
4862 | 4853 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2869 | 2869 | | |
2870 | 2870 | | |
2871 | 2871 | | |
2872 | | - | |
2873 | | - | |
2874 | | - | |
2875 | | - | |
2876 | | - | |
2877 | | - | |
2878 | | - | |
2879 | | - | |
2880 | | - | |
2881 | | - | |
| 2872 | + | |
2882 | 2873 | | |
2883 | 2874 | | |
2884 | 2875 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5450 | 5450 | | |
5451 | 5451 | | |
5452 | 5452 | | |
5453 | | - | |
5454 | | - | |
5455 | | - | |
5456 | | - | |
5457 | | - | |
5458 | | - | |
5459 | | - | |
5460 | | - | |
5461 | | - | |
5462 | | - | |
5463 | | - | |
| 5453 | + | |
5464 | 5454 | | |
5465 | 5455 | | |
5466 | 5456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
0 commit comments