Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
unlinked_dll
· 6y ago · 0 comments
Can we use #[track_caller] on procedural macros?
Comments
[–]
SpaceManiac
6y ago
Your macro can expand to line!() or file!() calls as needed, which will reflect the call site.
[–]
anp
6y ago
What a great question! Because it's implemented as a const/codegen feature I'm not sure what it would mean to support it for proc macros. Probably gnarly design/RFC work?