Skip to content

Commit 321f1f7

Browse files
committed
Revert "span: add span_extend_to_line helper"
This reverts commit 97edb9f.
1 parent 3e6fa0c commit 321f1f7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

compiler/rustc_span/src/source_map.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -734,11 +734,6 @@ impl SourceMap {
734734
sp
735735
}
736736

737-
/// Extends the given `Span` to contain the entire line it is on.
738-
pub fn span_extend_to_line(&self, sp: Span) -> Span {
739-
self.span_extend_to_prev_char(self.span_extend_to_next_char(sp, '\n', true), '\n', true)
740-
}
741-
742737
/// Given a `Span`, tries to get a shorter span ending before the first occurrence of `char`
743738
/// `c`.
744739
pub fn span_until_char(&self, sp: Span, c: char) -> Span {

0 commit comments

Comments
 (0)