Commit d61a473
authored
Rollup merge of rust-lang#139348 - meithecatte:async-destructor-minify, r=petrochenkov
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.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 | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
| 458 | + | |
467 | 459 | | |
468 | 460 | | |
469 | 461 | | |
470 | 462 | | |
471 | 463 | | |
472 | 464 | | |
473 | | - | |
| 465 | + | |
474 | 466 | | |
475 | 467 | | |
476 | | - | |
477 | | - | |
| 468 | + | |
478 | 469 | | |
479 | 470 | | |
480 | 471 | | |
| |||
0 commit comments