about summary refs log tree commit diff
path: root/src/librustc_errors/lib.rs
diff options
context:
space:
mode:
authorMatthew Russo <matthew@edapp.com>2018-12-04 15:18:03 -0500
committerMatthew Russo <matthew@edapp.com>2018-12-04 19:52:42 -0500
commitf0f8aa9e05726bfbc065fa2504daf3232f29bc03 (patch)
tree5027e1682248fb6e535546046f43dff45d6e2b50 /src/librustc_errors/lib.rs
parent88130f1796e98837dc6f58aea9b9a0f49b85f426 (diff)
downloadrust-f0f8aa9e05726bfbc065fa2504daf3232f29bc03.tar.gz
rust-f0f8aa9e05726bfbc065fa2504daf3232f29bc03.zip
adds DocTest filename variant, refactors doctest_offset out of source_map, fixes remaining test failures
Diffstat (limited to 'src/librustc_errors/lib.rs')
-rw-r--r--src/librustc_errors/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs
index 0fb77a7a3ab..b6528cbe2c8 100644
--- a/src/librustc_errors/lib.rs
+++ b/src/librustc_errors/lib.rs
@@ -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 {