You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Autoreleasing objects using rc::autoreleasepool is unsound because we cannot ensure that the lifetime from an outer pool is not used inside an inner pool.
To help mitigate that, we provide the auto trait AutoreleaseSafe, which can be enabled with the "unstable-autoreleasesafe" feature (requires nightly, since auto traits are unstable).
Even with that, though, other libraries such as scoped-tls-hkt make assumptions that break our assumptions, see the code example provided here.
So we need some other way to make autorelease pools safe (or resort to marking them unsafe).
The text was updated successfully, but these errors were encountered:
Autoreleasing objects using
rc::autoreleasepool
is unsound because we cannot ensure that the lifetime from an outer pool is not used inside an inner pool.To help mitigate that, we provide the auto trait
AutoreleaseSafe
, which can be enabled with the"unstable-autoreleasesafe"
feature (requiresnightly
, since auto traits are unstable).Even with that, though, other libraries such as
scoped-tls-hkt
make assumptions that break our assumptions, see the code example provided here.So we need some other way to make autorelease pools safe (or resort to marking them
unsafe
).The text was updated successfully, but these errors were encountered: