Closed github-actions[bot] closed 3 years ago
As far as I can tell, this crate doesn't appear in tokio's dependency tree. Is the bot misconfigured?
this crate is a dependency of loom. https://github.com/tokio-rs/loom/blob/master/Cargo.toml#L34
(It only appears in the dependency tree if cfg(loom)
is enabled.)
I transferred the issue to loom
generator
0.6.25
>=0.7.0
The
Generator
type is an iterable which uses a generator function that yields values. In affected versions of the crate, the provided function yielding values had noSend
bounds despite theGenerator
itself implementingSend
.The generator function lacking a
Send
bound means that types that are dangerous to send across threads such asRc
could be sent as part of a generator, potentially leading to data races.This flaw was fixed in commit
f7d120a3b
by enforcing that the generator function be bound bySend
.See advisory page for additional details.