Commit f52c729
committed
ty: normalize fn sigs before subst
This commit normalizes function signatures for instances before
substituting, a workaround for polymorphization considering
parameters unused when they show up in the signature, but not the
body (due to being normalized).
Unfortunately, this causes test output to change with the parallel
compiler only.
Signed-off-by: David Wood <david@davidtw.co>1 parent 2989fea commit f52c729
File tree
2 files changed
+51
-17
lines changed- src
- librustc_middle/ty
- test/ui/polymorphization
2 files changed
+51
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2302 | 2302 | | |
2303 | 2303 | | |
2304 | 2304 | | |
2305 | | - | |
2306 | | - | |
2307 | | - | |
2308 | | - | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
2309 | 2318 | | |
2310 | 2319 | | |
2311 | 2320 | | |
| |||
2321 | 2330 | | |
2322 | 2331 | | |
2323 | 2332 | | |
2324 | | - | |
2325 | | - | |
2326 | | - | |
2327 | | - | |
2328 | | - | |
2329 | | - | |
2330 | | - | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
2331 | 2342 | | |
2332 | 2343 | | |
2333 | 2344 | | |
| |||
2343 | 2354 | | |
2344 | 2355 | | |
2345 | 2356 | | |
2346 | | - | |
2347 | | - | |
2348 | | - | |
2349 | | - | |
| 2357 | + | |
| 2358 | + | |
2350 | 2359 | | |
2351 | 2360 | | |
2352 | 2361 | | |
2353 | 2362 | | |
2354 | 2363 | | |
2355 | 2364 | | |
2356 | 2365 | | |
2357 | | - | |
| 2366 | + | |
2358 | 2367 | | |
2359 | 2368 | | |
2360 | 2369 | | |
2361 | | - | |
| 2370 | + | |
2362 | 2371 | | |
2363 | 2372 | | |
2364 | 2373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments