fn res_rel_file(cx: &mut ExtCtxt, sp: codemap::Span, arg: &Path) -> Path {
    // NB: relative paths are resolved relative to the compilation unit
    if !arg.is_absolute() {
        let mut cu = Path::new(cx.codemap().span_to_filename(sp));
        cu.pop();
        cu.push(arg);
        cu
    } else {
        arg.clone()
    }
}
// resolve a file-system path to an absolute file-system path (if it
// isn't already)
resolve a file-system path to an absolute file-system path (if it
isn't already)
resolve a file - system path to an absolute file - system path ( if it isn ' t already )
fn res_rel_file(cx: &mut ExtCtxt, sp: codemap::Span, arg: &Path) -> Path {
    // NB: relative paths are resolved relative to the compilation unit
    if !arg.is_absolute() {
        let mut cu = Path::new(cx.codemap().span_to_filename(sp));
        cu.pop();
        cu.push(arg);
        cu
    } else {
        arg.clone()
    }
}
fn res_rel_file ( cx : & mut ExtCtxt , sp : codemap :: Span , arg : & Path ) -> Path { // NB: relative paths are resolved relative to the compilation unit if ! arg . is_absolute ( ) { let mut cu = Path :: new ( cx . codemap ( ) . span_to_filename ( sp ) ) ; cu . pop ( ) ; cu . push ( arg ) ; cu } else { arg . clone ( ) } }
resolve a file-system path to an absolute file-system path (if it
isn't already)
resolve a file - system path to an absolute file - system path ( if it isn ' t already )
cx
&mut ExtCtxt
sp
codemap::Span
arg
&Path
cx
&mut ExtCtxt
sp
codemap::Span
arg
&Path