We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b02abb commit 5fe2970Copy full SHA for 5fe2970
src/librustdoc/json/conversions.rs
@@ -59,12 +59,7 @@ impl JsonRenderer<'_> {
59
let hi = span.hi(self.sess());
60
let lo = span.lo(self.sess());
61
Some(Span {
62
- filename: match name {
63
- rustc_span::RealFileName::Named(path) => path,
64
- rustc_span::RealFileName::Devirtualized { local_path, virtual_name: _ } => {
65
- local_path
66
- }
67
- },
+ filename: name.into_local_path(),
68
begin: (lo.line, lo.col.to_usize()),
69
end: (hi.line, hi.col.to_usize()),
70
})
0 commit comments