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
file!
, line!
and col!
(and possibly module!
) do the Wrong Thing.
#3066
Comments
Add the following to the last list of syntax extensions in the syntax extensions section in rust.md when this bug is fixed:
|
Blocked by #3065, de-milestoning |
Nominating for milestone 5, production-ready |
accepted for production-ready milestone |
@graydon -- in the original issue, @paulstansifer said "the results won't be any different until #3065 is fixed." Maybe he will see this and explain why. |
#3065 is about making sure the syntactic backtrace (in |
I just ran the example from reported in this bug, and the emitted message points to the line with "NOT HERE": % /tmp/ldemo So I'm closing this bug. |
In the following code, the error message refers to the location of the macro calls at HERE, not NOTHERE. I think this (a) isn't what happens in C, etc., and (b) is never useful.
Fixing this should be a simple mater of getting the syntax backtrace from cx in source_util.rs and finding the topmost span, and ignoring the span that's temptingly passed in as an argument. Except that the results won't be any different until #3065 is fixed.
The text was updated successfully, but these errors were encountered: