Sourced from once_cell's changelog.
1.21.4
Fix unsoundness in
OnceCell::waitunder--features=parking_lot, #295.If thread A calls
wait, while thread B callsget_or_try_init(f), and, furthermore,fpanics, thewaitincorrectly returns and thread A observes uninitialized memory.Kudos to
@​meng-xu-csfor a nice find!
80fe900
Merge pull request #296
from matklad/matklad/plfixa5e09c9
release 1.21.42426d45
Merge pull request #295
from matklad/matklad/plfixa144121
Merge pull request #290
from alexanderkjall/run-tests-with-no-default-features232a1a4
Merge pull request #292
from phil-opp/doc-fixd31767b
fix OnceCell::wait with features=parking_lot28d29ae
Fix: sync::OnceCell::try_insert docs should import
sync variant0f78fb0
make the command 'cargo test --no-default-features' workfda60a6
Merge pull request #287
from AbeZbm/add-testsb5b98c0
Add tests for OnceRef