• Phil Booth's avatar
    refactor(tokens): make arena reference-counted member instead of static · 9eb83cd5
    Phil Booth authored
    The initial motivation for this was the possibility of multiple arenas
    per file, which obviously precludes having a single static arena.
    
    But happily, in making the change I also fixed two other problems:
    
    1. The tests no longer need to be run in a single thread.
    
    2. The "mystery" of missing odd-numbered token ids was fixed by using
       mem::replace instead of Vec::insert inside TokenArena::set.
    9eb83cd5
Validating GitLab CI configuration… Learn more
.gitlab-ci.yml 379 Bytes