2 ms·
Can we use #[track_caller] on procedural macros?
by unlinked_dll 7y ago
Can we use #[track_caller] on procedural macros?
- SpaceManiac 7y agoYour macro can expand to line!() or file!() calls as needed, which will reflect the call site.
- anp 7y agoWhat 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?