adds DocTest filename variant, refactors doctest_offset out of source_map, fixes remaining test failures
This commit is contained in:
parent
88130f1796
commit
f0f8aa9e05
12 changed files with 52 additions and 54 deletions
|
@ -130,7 +130,7 @@ pub trait SourceMapper {
|
|||
fn merge_spans(&self, sp_lhs: Span, sp_rhs: Span) -> Option<Span>;
|
||||
fn call_span_if_macro(&self, sp: Span) -> Span;
|
||||
fn ensure_source_file_source_present(&self, source_file: Lrc<SourceFile>) -> bool;
|
||||
fn doctest_offset_line(&self, line: usize) -> usize;
|
||||
fn doctest_offset_line(&self, file: &FileName, line: usize) -> usize;
|
||||
}
|
||||
|
||||
impl CodeSuggestion {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue