From 5f9d3fe467864c962a7093d54d2a4d0b290375af Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 15 May 2023 01:55:35 -0700 Subject: [PATCH] Disable start()/end() on Span::Compiler --- src/wrapper.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/wrapper.rs b/src/wrapper.rs index 00f67cd6..55131e86 100644 --- a/src/wrapper.rs +++ b/src/wrapper.rs @@ -470,12 +470,6 @@ impl Span { #[cfg(span_locations)] pub fn start(&self) -> LineColumn { match self { - #[cfg(proc_macro_span)] - Span::Compiler(s) => { - let proc_macro::LineColumn { line, column } = s.start(); - LineColumn { line, column } - } - #[cfg(not(proc_macro_span))] Span::Compiler(_) => LineColumn { line: 0, column: 0 }, Span::Fallback(s) => s.start(), } @@ -484,12 +478,6 @@ impl Span { #[cfg(span_locations)] pub fn end(&self) -> LineColumn { match self { - #[cfg(proc_macro_span)] - Span::Compiler(s) => { - let proc_macro::LineColumn { line, column } = s.end(); - LineColumn { line, column } - } - #[cfg(not(proc_macro_span))] Span::Compiler(_) => LineColumn { line: 0, column: 0 }, Span::Fallback(s) => s.end(), }