Commit 676b0b0
authored
Rollup merge of rust-lang#57313 - Nemo157:box-to-pin, r=cramertj
Improve Box<T> -> Pin<Box<T>> conversion
I found the `From` trait conversion for this very hard to find, having a named function for it is much more discoverable. Also fixes rust-lang#56256 as I need that in the place I'm using this.
Has a placeholder tracking issue, will file an issue once I get feedback.1 file changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
260 | 273 | | |
261 | 274 | | |
262 | 275 | | |
| |||
451 | 464 | | |
452 | 465 | | |
453 | 466 | | |
454 | | - | |
| 467 | + | |
455 | 468 | | |
456 | 469 | | |
457 | 470 | | |
458 | 471 | | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
| 472 | + | |
463 | 473 | | |
464 | 474 | | |
465 | 475 | | |
| |||
0 commit comments