remove quotation from filename
This commit is contained in:
parent
7bd385dc37
commit
0b25415559
@ -69,15 +69,13 @@ impl<'tcx> Context for TablesWrapper<'tcx> {
|
|||||||
|
|
||||||
fn get_filename(&self, span: &Span) -> Filename {
|
fn get_filename(&self, span: &Span) -> Filename {
|
||||||
let tables = self.0.borrow();
|
let tables = self.0.borrow();
|
||||||
opaque(
|
tables
|
||||||
&tables
|
.tcx
|
||||||
.tcx
|
.sess
|
||||||
.sess
|
.source_map()
|
||||||
.source_map()
|
.span_to_filename(tables[*span])
|
||||||
.span_to_filename(tables[*span])
|
.display(rustc_span::FileNameDisplayPreference::Local)
|
||||||
.display(rustc_span::FileNameDisplayPreference::Local)
|
.to_string()
|
||||||
.to_string(),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_lines(&self, span: &Span) -> LineInfo {
|
fn get_lines(&self, span: &Span) -> LineInfo {
|
||||||
|
@ -110,7 +110,7 @@ pub enum ItemKind {
|
|||||||
Const,
|
Const,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type Filename = Opaque;
|
pub type Filename = String;
|
||||||
|
|
||||||
/// Holds information about an item in the crate.
|
/// Holds information about an item in the crate.
|
||||||
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
|
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user