From 2b5bc487c5e7a028f56820db49c8f2b1c6aec99a Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 13 Oct 2016 12:08:50 -0400 Subject: improve early lint to use multispan from diagnostic --- src/librustc_errors/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/librustc_errors/lib.rs') diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs index d9ab0dd075b..badee66b83d 100644 --- a/src/librustc_errors/lib.rs +++ b/src/librustc_errors/lib.rs @@ -57,7 +57,7 @@ mod lock; use syntax_pos::{BytePos, Loc, FileLinesResult, FileName, MultiSpan, Span, NO_EXPANSION}; use syntax_pos::MacroBacktrace; -#[derive(Clone, Debug)] +#[derive(Clone, Debug, PartialEq)] pub enum RenderSpan { /// A FullSpan renders with both with an initial line for the /// message, prefixed by file:linenum, followed by a summary of @@ -71,7 +71,7 @@ pub enum RenderSpan { Suggestion(CodeSuggestion), } -#[derive(Clone, Debug)] +#[derive(Clone, Debug, PartialEq)] pub struct CodeSuggestion { pub msp: MultiSpan, pub substitutes: Vec, -- cgit 1.4.1-3-g733a5