Commit 754b4a4
authored
Rollup merge of #149916 - zetanumbers:double_node_sanity, r=petrochenkov
Add a sanity check in case of any duplicate nodes
A simple check in case compiler tries to encode a dep node twice like in #141540.
Also if we'd try to mark a red node as green as it may then create a bad `DepNodeIndex` like in #148295.
If it prevents #141540 from emitting a faulty `dep-graph.bin` file via panic then it means you will be able to temporarily fix it by simply restarting cargo or rust-analyzer without cleaning up incremental cache.1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1363 | 1363 | | |
1364 | 1364 | | |
1365 | 1365 | | |
1366 | | - | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
1367 | 1370 | | |
1368 | 1371 | | |
1369 | 1372 | | |
| |||
1384 | 1387 | | |
1385 | 1388 | | |
1386 | 1389 | | |
1387 | | - | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
1388 | 1393 | | |
1389 | 1394 | | |
1390 | 1395 | | |
| |||
0 commit comments