Skip to content

Commit e4b5621

Browse files
cbeuwcalebcartwright
authored andcommitted
Only deal with LocalPath in conversion
1 parent 8526ace commit e4b5621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/config/file_lines.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub enum FileName {
2828
impl From<rustc_span::FileName> for FileName {
2929
fn from(name: rustc_span::FileName) -> FileName {
3030
match name {
31-
rustc_span::FileName::Real(p) => FileName::Real(p.into_local_path()),
31+
rustc_span::FileName::Real(rustc_span::RealFileName::LocalPath(p)) => FileName::Real(p),
3232
rustc_span::FileName::Custom(ref f) if f == "stdin" => FileName::Stdin,
3333
_ => unreachable!(),
3434
}

0 commit comments

Comments
 (0)