Skip to content

Commit f3c18bb

Browse files
committed
Reuse variable
1 parent 1ced98a commit f3c18bb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: compiler/rustc_metadata/src/rmeta/encoder.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -509,9 +509,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
509509
virtual_name: joined,
510510
}
511511
} else {
512-
RealFileName::LocalPath(
513-
Path::new(absolute).join(path_to_file),
514-
)
512+
RealFileName::LocalPath(joined)
515513
}
516514
}
517515
RealFileName::Remapped { local_path: _, virtual_name } => {

0 commit comments

Comments
 (0)