parking_lot implementation tests fail under Miri due to compare_exchange_weak failures
saethlin opened this issue · comments
Ben Kimock commented
compare_exchange_weak
is allowed to spuriously fail. By default, Miri makes most calls fail so this panics when running tests:
Line 171 in 2cdfc1e
Ralf Jung commented
Looks like this code simply wants compare_exchange
without the "weak", if it does not want to handle spurious failures?
Alex Kladov commented
Nah, that’s just a bug, it should have Err(INCOMPLETE) => (), branch
Alex Kladov commented
@RalfJung in case no-one has told you this yet, miri is very cool, thanks!