about summary refs log tree commit diff
path: root/src/librustc_errors
diff options
context:
space:
mode:
authorJonathan Turner <jturner@mozilla.com>2016-09-19 12:31:56 -0700
committerJonathan Turner <jturner@mozilla.com>2016-09-19 12:31:56 -0700
commit2ea3ab3a9022a93e45c4d50a1c43aec5f56ab4dc (patch)
tree28b2c21cf26ac97dd70651b1970bdab4c462b816 /src/librustc_errors
parent8394685b8385156fc4bc31cfbc693867e276d9d7 (diff)
downloadrust-2ea3ab3a9022a93e45c4d50a1c43aec5f56ab4dc.tar.gz
rust-2ea3ab3a9022a93e45c4d50a1c43aec5f56ab4dc.zip
Add the ability to merge spans to codemap
Diffstat (limited to 'src/librustc_errors')
-rw-r--r--src/librustc_errors/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs
index d2f3eea85f2..bc599a82076 100644
--- a/src/librustc_errors/lib.rs
+++ b/src/librustc_errors/lib.rs
@@ -81,6 +81,7 @@ pub trait CodeMapper {
     fn span_to_string(&self, sp: Span) -> String;
     fn span_to_filename(&self, sp: Span) -> FileName;
     fn macro_backtrace(&self, span: Span) -> Vec<MacroBacktrace>;
+    fn merge_spans(&self, sp_lhs: Span, sp_rhs: Span) -> Option<Span>;
 }
 
 impl CodeSuggestion {