Skip to content

Lifetime scope note messages have off-by-one column numbers. #41938

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
eddyb opened this issue May 12, 2017 · 0 comments
Closed

Lifetime scope note messages have off-by-one column numbers. #41938

eddyb opened this issue May 12, 2017 · 0 comments

Comments

@eddyb
Copy link
Member

eddyb commented May 12, 2017

The explain_span function used for them doesn't convert lo.col to be 1-based.

Noticed because in #41914 some messages ended up looking like this:

note: the anonymous lifetime #2 defined on the function body at 15:0...
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this issue May 20, 2017
…omatsakis

Fix off-by-one error in column number in `explain_span`.

Fixes rust-lang#41938
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant