Skip to content

Commit 8bbbd60

Browse files
authored
Merge pull request #383 from dtolnay/procmacrospan
Disable start()/end() on Span::Compiler
2 parents a597b3c + 5f9d3fe commit 8bbbd60

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/wrapper.rs

-12
Original file line numberDiff line numberDiff line change
@@ -470,12 +470,6 @@ impl Span {
470470
#[cfg(span_locations)]
471471
pub fn start(&self) -> LineColumn {
472472
match self {
473-
#[cfg(proc_macro_span)]
474-
Span::Compiler(s) => {
475-
let proc_macro::LineColumn { line, column } = s.start();
476-
LineColumn { line, column }
477-
}
478-
#[cfg(not(proc_macro_span))]
479473
Span::Compiler(_) => LineColumn { line: 0, column: 0 },
480474
Span::Fallback(s) => s.start(),
481475
}
@@ -484,12 +478,6 @@ impl Span {
484478
#[cfg(span_locations)]
485479
pub fn end(&self) -> LineColumn {
486480
match self {
487-
#[cfg(proc_macro_span)]
488-
Span::Compiler(s) => {
489-
let proc_macro::LineColumn { line, column } = s.end();
490-
LineColumn { line, column }
491-
}
492-
#[cfg(not(proc_macro_span))]
493481
Span::Compiler(_) => LineColumn { line: 0, column: 0 },
494482
Span::Fallback(s) => s.end(),
495483
}

0 commit comments

Comments
 (0)