Skip to content

JSON errors with suggestions are incomplete #30701

Closed
@nrc

Description

@nrc

The suggestion code snippet does not include the suggested change, it has the original code.

To fix this, look for the FIXME for this issue in src/libsyntax/errors/json.rs. We should extend DiagnosticSpan with another field: override_snippet and use this in the suggestion case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions