News for hackers. Stuff that matters.
Re:Rust 1.42 by unlinked_dll on Thursday March 12, 2020 @12:30PM (#22558556)
Can we use #[track_caller] on procedural macros?
Re:Rust 1.42 by SpaceManiac on Thursday March 12, 2020 @03:57PM (#22561076)
Your macro can expand to line!() or file!() calls as needed, which will reflect the call site.
Re:Rust 1.42 by anp on Thursday March 12, 2020 @07:37PM (#22563211)
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?