Current use of pin
is unsound
#286
Labels
• drivers
Related to the example drivers in `drivers/`.
good first issue
Good for newcomers
unsound
The possibility of UB in safe code.
In rust_miscdev, this would compile:
but this swaps two pinned
CondVar
, which is unsound. After pinning theCondVar
, we shouldn't be able to obtain anyArc<SharedState>
, but rather onlyPin<Arc<SharedState>>
.The text was updated successfully, but these errors were encountered: