rustc_builtin_macros::source_util

Function expand_file

source
pub(crate) fn expand_file(
    cx: &mut ExtCtxt<'_>,
    sp: Span,
    tts: TokenStream,
) -> MacroExpanderResult<'static>
Expand description

file!(): expands to the current filename */ The source_file (loc.file) contains a bunch more information we could spit out if we wanted.