- Reported
-
- Issued
-
- Package
-
static_cell
(crates.io)
- Type
-
INFO
Unsound
- Categories
-
- Keywords
-
#send
#thread-safety
- References
-
- Patched
-
- Unaffected
-
- Affected Functions
- Version
static_cell::ConstStaticCell::new
-
Description
ConstStaticCell<T>
could have been used to pass non-Send
values to another thread, because T
was not required to be Send
while ConstStaticCell
is Send
.
This was corrected by introducing a T: Send
bound.
Advisory available under CC0-1.0
license.