Skip to content

Fix position propagation in hir-mir crate #645

@raviqqe

Description

@raviqqe

Problem

  • Some errors show wrong (at least, unexpected to end-users) positions sometimes.
    • e.g. on type mismatches

Solution

  • Propagate just the closest positions for intermediate types.
    • But not positions of sources of the original types.
  • Potentially, we can also implement type propagation traces and show them on errors like TypeScript.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions