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
This lifetime bound disallows T to outlive 'bump, i.e. its allocator borrow. std::vec::Vec doesn't have anything remotely like that. Also it disallows me to add some drop check tests from std, which i am not sure if they are actually fixed or not.
EDIT: I it does fixes it, but then it should disallow types which wouldn't need a drop check.
The text was updated successfully, but these errors were encountered:
zetanumbers
changed the title
Unnecessary lifetime bound on a generic type for Vec
Unnecessary lifetime bound on a generic type for Vec?
Jun 27, 2022
We should do whatever std does. When I ported Vec over, it didn't have a generic allocator yet, so it makes sense that things have diverged. We should reconverge them.
bumpalo/src/collections/vec.rs
Line 520 in f5e01a7
This lifetime bound disallows
T
to outlive'bump
, i.e. its allocator borrow.std::vec::Vec
doesn't have anything remotely like that. Also it disallows me to add some drop check tests fromstd
, which i am not sure if they are actually fixed or not.EDIT: I it does fixes it, but then it should disallow types which wouldn't need a drop check.
The text was updated successfully, but these errors were encountered: