Skip to main content

trim_paths_remap

Function trim_paths_remap 

Source
pub(crate) fn trim_paths_remap(
    build_runner: &BuildRunner<'_, '_>,
    unit: &Unit,
) -> [OsString; 3]
Expand description

Computes the <from>=<to> path remap pairs for RFC 3127 trim-paths.

Order of --remap-path-prefix flags is important for -Zbuild-std. We want to show /rustc/<hash>/library/std instead of std-0.0.0.