Commit 7f6fdef
authored
Rollup merge of rust-lang#68256 - estebank:bad-sugg-span, r=petrochenkov
Do not ICE on malformed suggestion spans
Under the assumption that suggestions are by their very nature always "best effort", it is ok if we don't display them instead of having an ICE. The underlying issue of the malformed span being _created_ is left unaddressed.
Fix rust-lang#67567.
r? @petrochenkovFile tree
4 files changed
+30
-9
lines changed- src
- librustc_errors
- librustc_span
- test/ui/consts/miri_unleashed
4 files changed
+30
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1476 | 1476 | | |
1477 | 1477 | | |
1478 | 1478 | | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
1479 | 1488 | | |
1480 | 1489 | | |
1481 | 1490 | | |
| |||
1492 | 1501 | | |
1493 | 1502 | | |
1494 | 1503 | | |
1495 | | - | |
1496 | | - | |
1497 | | - | |
1498 | 1504 | | |
1499 | 1505 | | |
1500 | 1506 | | |
| |||
1505 | 1511 | | |
1506 | 1512 | | |
1507 | 1513 | | |
1508 | | - | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
1509 | 1517 | | |
1510 | 1518 | | |
1511 | 1519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
177 | 187 | | |
178 | 188 | | |
179 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | | - | |
478 | | - | |
| 476 | + | |
479 | 477 | | |
480 | 478 | | |
481 | 479 | | |
482 | 480 | | |
483 | | - | |
484 | 481 | | |
485 | 482 | | |
486 | 483 | | |
487 | 484 | | |
488 | 485 | | |
489 | 486 | | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
490 | 493 | | |
491 | 494 | | |
492 | 495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments