Skip to content

"Unfortunate copy" in syntax::parse::new_parser_from_file #2319

@catamorphism

Description

@catamorphism

syntax::parse::new_parser_from_file has a FIXME that says "this copy is unfortunate". Actually I think the comment is out of date, because all that's being copied is a box. However, I'm wondering about the related issue of whether codemap::filemap should have an @str field as it currently does, or whether that should be a str (since it's not shared). I don't understand what's going on well enough to really fix this (though I tried), so I'm filing this so someone who knows why the comment is there (like maybe @brson ) can weigh in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions