Skip to main content

read_source

Function read_source 

Source
pub fn read_source(path: &Path) -> Result<Resolved, Error>
Expand description

Reads the file an include_c99!("…") names.

Not a search: the path was resolved against the directory of the invoking .rs file before it got here, so it either is the translation unit or it is nothing. What comes back is the same Resolved a header does — the display name for diagnostics and for __FILE__, the text, the directory its own #include "…" searches first, and the absolute path the expansion tracks for rebuilds.