Skip to main content

source_name

Function source_name 

Source
pub fn source_name(path: &str) -> &str
Expand description

What a file reads as in a message, in a line marker and in __FILE__.

Standard input has no name, so it gets the one gcc gives it. A build that pipes a file in and then greps the output for a name is reading gcc’s name for it, and - is not that name.