Commit eb0dcc8
authored
Import generic named constraints (#6376)
We add tests showing that `ImplStore::GetOrAddLookupBucket` is doing the
wrong thing for impls of a named constraint, as the impl-file
redeclarations of impls in the api file are not getting flagged as such.
To do the right thing requires us to be able to get the constraint from
a require declaration with the specific of the named
constraint/interface applied, which is future work as described in the
[open discussion
notes](https://docs.google.com/document/d/1Yt-i5AmF76LSvD4TrWRIAE_92kii6j5yFiW-S7ahzlg/edit?tab=t.1ji9ixn9bbnn#heading=h.kijomnov90rz).1 parent 57a2715 commit eb0dcc8
File tree
4 files changed
+915
-44
lines changed- toolchain
- check
- testdata/impl
- sem_ir
4 files changed
+915
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
855 | 860 | | |
856 | 861 | | |
857 | 862 | | |
| |||
1070 | 1075 | | |
1071 | 1076 | | |
1072 | 1077 | | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1073 | 1083 | | |
1074 | 1084 | | |
1075 | 1085 | | |
| |||
2272 | 2282 | | |
2273 | 2283 | | |
2274 | 2284 | | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
2275 | 2303 | | |
2276 | 2304 | | |
2277 | 2305 | | |
| |||
2775 | 2803 | | |
2776 | 2804 | | |
2777 | 2805 | | |
2778 | | - | |
| 2806 | + | |
2779 | 2807 | | |
2780 | 2808 | | |
2781 | 2809 | | |
| |||
3522 | 3550 | | |
3523 | 3551 | | |
3524 | 3552 | | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
3525 | 3556 | | |
3526 | 3557 | | |
3527 | 3558 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
0 commit comments