Commit cfb6114
committed
Auto merge of rust-lang#74676 - lcnr:generics-no-sort, r=varkor
correctly deal with unsorted generic parameters
We now stop sorting generic params and instead correctly handle unsorted params in the rest of the compiler.
We still restrict const params to come after type params though, so this PR does not change anything which
is visible to users.
This might slightly influence perf, so let's prevent any unintentional rollups. @bors rollup=never
r? @varkorFile tree
5 files changed
+62
-41
lines changed- src
- librustc_ast_lowering
- librustc_resolve/late
- librustc_typeck
- test/ui/const-generics
5 files changed
+62
-41
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
| 939 | + | |
953 | 940 | | |
954 | 941 | | |
955 | 942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
1301 | | - | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
1302 | 1305 | | |
1303 | 1306 | | |
1304 | 1307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1362 | 1362 | | |
1363 | 1363 | | |
1364 | 1364 | | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
1372 | 1368 | | |
1373 | 1369 | | |
1374 | 1370 | | |
| |||
1378 | 1374 | | |
1379 | 1375 | | |
1380 | 1376 | | |
1381 | | - | |
| 1377 | + | |
1382 | 1378 | | |
1383 | 1379 | | |
1384 | 1380 | | |
| |||
1403 | 1399 | | |
1404 | 1400 | | |
1405 | 1401 | | |
1406 | | - | |
1407 | | - | |
1408 | 1402 | | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
| 1403 | + | |
1413 | 1404 | | |
1414 | 1405 | | |
1415 | 1406 | | |
| |||
1419 | 1410 | | |
1420 | 1411 | | |
1421 | 1412 | | |
1422 | | - | |
1423 | | - | |
1424 | 1413 | | |
1425 | 1414 | | |
1426 | 1415 | | |
| |||
1899 | 1888 | | |
1900 | 1889 | | |
1901 | 1890 | | |
1902 | | - | |
1903 | | - | |
1904 | | - | |
1905 | | - | |
1906 | | - | |
1907 | | - | |
1908 | | - | |
1909 | | - | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
1910 | 1909 | | |
1911 | 1910 | | |
1912 | 1911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
7 | 19 | | |
8 | 20 | | |
9 | 21 | | |
| |||
13 | 25 | | |
14 | 26 | | |
15 | 27 | | |
16 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
17 | 38 | | |
| 39 | + | |
0 commit comments