Skip to main content

display_path

Function display_path 

Source
pub fn display_path(path: &Path) -> String
Expand description

How a path is written in a diagnostic.

Relative wherever it can be — a message naming /home/someone/crate/include/foo.h is a message that differs between two machines, which makes it useless in a test and noisy everywhere else — so a path inside the working directory is shown relative to it.