This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 5b0caef
committed
Auto merge of rust-lang#68377 - estebank:fn-obligations-spans, r=oli-obk
Tweak obligation error output
- Point at arguments or output when fn obligations come from them, or ident when they don't
- Point at `Sized` bound (fix rust-lang#47990)
- When object unsafe trait uses itself in associated item suggest using `Self` (fix rust-lang#66424, fix rust-lang#33375, partially address rust-lang#38376, cc rust-lang#61525)
- Point at reason in object unsafe trait with `Self` in supertraits or `where`-clause (cc rust-lang#40533, cc rust-lang#68377)
- On implicit type parameter `Sized` obligations, suggest `?Sized` (fix rust-lang#57744, fix rust-lang#46683)File tree
145 files changed
+1428
-835
lines changed- src
- librustc_hir
- librustc_mir/borrow_check/diagnostics
- librustc_parse/parser
- librustc_traits/lowering
- librustc_typeck/check
- method
- librustc_ty
- librustc
- traits
- error_reporting
- ty
- test/ui
- associated-const
- associated-item
- associated-type-bounds
- associated-types
- closures
- coherence
- consts
- did_you_mean
- dst
- error-codes
- extern
- feature-gates
- generic-associated-types
- impl-trait
- issues
- kindck
- lifetimes
- object-safety
- regions
- resolve
- self
- str
- suggestions
- traits
- trait-alias
- type-alias-impl-trait
- type
- type-check
- union
- unsized-locals
- unsized
- wf
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
145 files changed
+1428
-835
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
1034 | 1033 | | |
1035 | 1034 | | |
1036 | 1035 | | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
1037 | 1040 | | |
1038 | 1041 | | |
1039 | 1042 | | |
| |||
1045 | 1048 | | |
1046 | 1049 | | |
1047 | 1050 | | |
| 1051 | + | |
1048 | 1052 | | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1049 | 1060 | | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1053 | 1067 | | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
1054 | 1085 | | |
1055 | 1086 | | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1056 | 1090 | | |
1057 | 1091 | | |
1058 | 1092 | | |
| |||
1305 | 1339 | | |
1306 | 1340 | | |
1307 | 1341 | | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
1308 | 1380 | | |
1309 | 1381 | | |
1310 | 1382 | | |
| |||
1354 | 1426 | | |
1355 | 1427 | | |
1356 | 1428 | | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
1394 | | - | |
1395 | | - | |
1396 | | - | |
1397 | | - | |
1398 | | - | |
1399 | | - | |
1400 | | - | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
1419 | | - | |
1420 | | - | |
1421 | | - | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
1425 | | - | |
1426 | | - | |
1427 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
| |||
1652 | 1654 | | |
1653 | 1655 | | |
1654 | 1656 | | |
| 1657 | + | |
1655 | 1658 | | |
1656 | 1659 | | |
1657 | 1660 | | |
1658 | 1661 | | |
1659 | 1662 | | |
1660 | 1663 | | |
| 1664 | + | |
1661 | 1665 | | |
1662 | 1666 | | |
1663 | 1667 | | |
1664 | 1668 | | |
1665 | 1669 | | |
1666 | | - | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
1667 | 1677 | | |
1668 | 1678 | | |
1669 | 1679 | | |
| |||
0 commit comments