Commit a2618e1
committed
AsyncDestructor: replace fields with impl_did
The future and ctor fields aren't actually used, and the way they are
extracted is obviously wrong – swapping the order of the items in the
source code will give wrong results.
Instead, store just the LocalDefId of the impl, which is enough for the
only use of this data.1 parent 00095b3 commit a2618e1
File tree
3 files changed
+6
-17
lines changed- compiler/rustc_middle/src/ty
3 files changed
+6
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
| 1127 | + | |
| 1128 | + | |
1131 | 1129 | | |
1132 | 1130 | | |
1133 | 1131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
| 453 | + | |
462 | 454 | | |
463 | 455 | | |
464 | 456 | | |
465 | 457 | | |
466 | 458 | | |
467 | 459 | | |
468 | | - | |
| 460 | + | |
469 | 461 | | |
470 | 462 | | |
471 | | - | |
472 | | - | |
| 463 | + | |
473 | 464 | | |
474 | 465 | | |
475 | 466 | | |
| |||
0 commit comments