Skip to content

Add abstraction on top of the secondary error vector #867

@Hedgehogo

Description

@Hedgehogo

Make the type of secondary errors vector generic.

This will allow you to use smallvec or the arena in this location for optimization purposes, as well as use usize if the error is ZST.

It will also allow you to use a mutable reference, for example, to perform several compilation steps with a single vector of secondary errors, rather than alocating several and then concatenating. This will also require the ability to pass this reference accordingly when calling parse or one of its analogues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiA problem with the design of an API featureenhancementNew feature or requesterror-recoveryAn issue related to chumsky's error recovery API

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions