Skip to content

Incorrect span for method lookup failure #9390

@Kimundi

Description

@Kimundi

For example, if I change the name of ::std::StrSlice::rfind I get:

.../rust/src/libstd/path.rs:106:22: 106:36 error: type `&&str` does not implement any method in scope named `rfind`
.../rust/src/libstd/path.rs:106                 match f.rfind('.') {
                                                      ^~~~~~~~~~~~~~

The Span should probably just point at the rfind itself.

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