Fix dropck issue of SyncOnceCell.#76370
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
|
Wow, this is super-nice find, thanks @m-ou-se! Can we add |
|
And I guess the dropcheck test still passes, so that's good: rust/library/std/src/lazy/tests.rs Lines 316 to 323 in 578e714 r? @KodrAus This looks |
|
@m-ou-se out of curiosity, how did you found out about this issue? |
|
Also, I guess cc @RalfJung :) I find it surprising that |
Uh, I'm not sure. ^^' I have a lot of tabs open in my browser with interesting PRs I want to take a closer look at at some point, and #75648 was one of those. I don't remember why I had this one open. I guess I wanted to remind myself to take a closer look at how |
I think it's working as intended. It's perfectly safe to drop a |
Sounds like a good idea. What's the best way of doing compile_fail tests in std? As a doctest on some private item, or does std have another preferred way of doing this? |
I guess it's |
|
I've added a |
|
@bors r+ |
|
📌 Commit e56ea68 has been approved by |
…ll-soundness, r=nagisa Fix dropck issue of SyncOnceCell. Fixes rust-lang#76367.
|
Nice find! I’ll update our forge docs on |
|
☀️ Test successful - checks-actions, checks-azure |
Fixes #76367.