Attribute Macro caller_modpath::expose_caller_modpath[][src]

#[expose_caller_modpath]

Makes Span::caller_modpath() available to the applied macro, and all functions which it calls.

Note:

This can only be applied to #[proc_macro_attribute] functions.

#[expose_caller_modpath] should go above #[proc_macro_attribute]

For an example, see the top level documentation.