Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

add test that checks that colums are 0-indexed in proc-macro environment as well #372

Closed
wants to merge 2 commits into from

Conversation

samuelpilz
Copy link

@samuelpilz samuelpilz commented Mar 25, 2023

investigating issue #326: In a proc-macro context, the the column field of LineColum is 1-indexed, while it appears to be 0-indexed when using parse::<TokenStream>
This PR adds a failing (on nightly) test case, that tests the behavior of what the docs say.

I believe this inconsistency should be fixed somehow. Or have I missed something?

@samuelpilz samuelpilz changed the title add test that colums are 0-indexed in proc-macro environment as well add test that checks that colums are 0-indexed in proc-macro environment as well Mar 25, 2023
Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dtolnay dtolnay closed this Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants