Skip to content

Error spans for missing methods don't point at which method call it was #13709

Closed
@larsbergstrom

Description

@larsbergstrom

The error span points at the start of the expression, rather than the subexpression associated with the method call. Probably not a common issue, but I'm sorting through several hundred errors like the one below during this Rust upgrade, and it certainly doesn't speed up the process when I have to figure out which get (or borrow) call it was in our often-lengthy chains of get/borrow calls.

/Users/larsberg/servo/src/components/main/layout/block.rs:1640:9: 1640:30 error: type `sync::arc::Arc<style::properties::ComputedValues>` does not implement any method in scope named `get`
/Users/larsberg/servo/src/components/main/layout/block.rs:1640         self.box_.style.get().Box.get().position
                                                                       ^~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions