mirror of
https://github.com/danbulant/oxc
synced 2026-05-20 20:58:48 +00:00
## Why
Due to the usage of `&'alloc mut T` in `oxc_allocator::Box`, and
`bumpalo::collections::Vec` in `oxc_allocator::Vec`, ast types are
currently invariant over their allocator lifetime `'a`. This prevents
`ouroboros` from generating `borrow_*` on ast type fields, leading to
the unfriendly `with_*` api:
|
||
|---|---|---|
| .. | ||
| multi-thread.rs | ||
| parser.rs | ||
| visitor.rs | ||