diff options
| author | Jonathan Turner <jturner@mozilla.com> | 2016-09-19 12:31:56 -0700 |
|---|---|---|
| committer | Jonathan Turner <jturner@mozilla.com> | 2016-09-19 12:31:56 -0700 |
| commit | 2ea3ab3a9022a93e45c4d50a1c43aec5f56ab4dc (patch) | |
| tree | 28b2c21cf26ac97dd70651b1970bdab4c462b816 /src/librustc_errors | |
| parent | 8394685b8385156fc4bc31cfbc693867e276d9d7 (diff) | |
| download | rust-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.rs | 1 |
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 { |
