diff options
| author | Jonathan Turner <jturner@mozilla.com> | 2016-07-12 15:18:16 -0400 |
|---|---|---|
| committer | Jonathan Turner <jturner@mozilla.com> | 2016-07-14 07:57:46 -0400 |
| commit | 2f2c3e178325dc1837badcd7573c2c0905fab979 (patch) | |
| tree | 612638d11f7a89f81c5ed7762b478affcb03c209 /src/librustc_errors/lib.rs | |
| parent | f481879d2ae82a6f6ebe33202d4a1cfa8aece5ed (diff) | |
| download | rust-2f2c3e178325dc1837badcd7573c2c0905fab979.tar.gz rust-2f2c3e178325dc1837badcd7573c2c0905fab979.zip | |
DCE and fixing some internal tests
Diffstat (limited to 'src/librustc_errors/lib.rs')
| -rw-r--r-- | src/librustc_errors/lib.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs index 33781bed759..d5340e66ff0 100644 --- a/src/librustc_errors/lib.rs +++ b/src/librustc_errors/lib.rs @@ -82,16 +82,6 @@ pub trait CodeMapper { fn macro_backtrace(&self, span: Span) -> Vec<MacroBacktrace>; } -impl RenderSpan { - fn span(&self) -> &MultiSpan { - match *self { - FullSpan(ref msp) | - Suggestion(CodeSuggestion { ref msp, .. }) => - msp - } - } -} - impl CodeSuggestion { /// Returns the assembled code suggestion. pub fn splice_lines(&self, cm: &CodeMapper) -> String { |
