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

auto: Fix behavior of file!, line! and col! #4888

Merged
merged 3 commits into from
Feb 11, 2013

Conversation

cyndis
Copy link
Contributor

@cyndis cyndis commented Feb 11, 2013

file!, line! and col!, when used in a macro, have been returning the position in the macro itself, not in its expansion. See issue #3066. This patch fixes the behavior by walking ext_ctxt's ExpnInfos to the top or until include! is used and using that span.

@brson brson merged commit ca030b4 into rust-lang:incoming Feb 11, 2013
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.

3 participants