Commit f20a754
authored
Rollup merge of rust-lang#81745 - Kixunil:stabilize_once_poison, r=m-ou-se
Stabilize poison API of Once, rename poisoned()
This stabilizes:
* `OnceState`
* `OnceState::is_poisoned()` (previously named `poisoned()`)
* `Once::call_once_force()`
`poisoned()` was renamed because the new name is more clear as a few
people agreed and nobody objected.
Closes rust-lang#33577
Notes:
* I'm not entirely sure it's supposed to be 1.51, LMK if I did it wrong
* I failed to run tests locally, so we will have to leave it to bors or someone else can try2 files changed
+9
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
285 | 283 | | |
286 | 284 | | |
287 | 285 | | |
| |||
301 | 299 | | |
302 | 300 | | |
303 | 301 | | |
304 | | - | |
| 302 | + | |
305 | 303 | | |
306 | 304 | | |
307 | 305 | | |
308 | 306 | | |
309 | 307 | | |
310 | | - | |
| 308 | + | |
311 | 309 | | |
312 | 310 | | |
313 | 311 | | |
| |||
526 | 524 | | |
527 | 525 | | |
528 | 526 | | |
529 | | - | |
530 | | - | |
531 | 527 | | |
532 | 528 | | |
533 | 529 | | |
| |||
540 | 536 | | |
541 | 537 | | |
542 | 538 | | |
543 | | - | |
| 539 | + | |
544 | 540 | | |
545 | 541 | | |
546 | 542 | | |
547 | 543 | | |
548 | 544 | | |
549 | 545 | | |
550 | | - | |
551 | | - | |
552 | 546 | | |
553 | 547 | | |
554 | 548 | | |
555 | 549 | | |
556 | 550 | | |
557 | | - | |
| 551 | + | |
558 | 552 | | |
559 | | - | |
560 | | - | |
| 553 | + | |
| 554 | + | |
561 | 555 | | |
562 | 556 | | |
563 | 557 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments