Skip to content

Commit

Permalink
Only deal with LocalPath in conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeuw authored and calebcartwright committed May 13, 2021
1 parent 8526ace commit e4b5621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/file_lines.rs
Expand Up @@ -28,7 +28,7 @@ pub enum FileName {
impl From<rustc_span::FileName> for FileName {
fn from(name: rustc_span::FileName) -> FileName {
match name {
rustc_span::FileName::Real(p) => FileName::Real(p.into_local_path()),
rustc_span::FileName::Real(rustc_span::RealFileName::LocalPath(p)) => FileName::Real(p),
rustc_span::FileName::Custom(ref f) if f == "stdin" => FileName::Stdin,
_ => unreachable!(),
}
Expand Down

0 comments on commit e4b5621

Please sign in to comment.