From 6887202ea3a1d3e3df0c88c07c754defd87b9712 Mon Sep 17 00:00:00 2001 From: mitaa Date: Mon, 25 Apr 2016 17:20:32 +0200 Subject: Make some fatal lexer errors recoverable --- src/libsyntax/errors/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libsyntax/errors') diff --git a/src/libsyntax/errors/mod.rs b/src/libsyntax/errors/mod.rs index acf65fe15b1..792828b3054 100644 --- a/src/libsyntax/errors/mod.rs +++ b/src/libsyntax/errors/mod.rs @@ -177,6 +177,7 @@ impl error::Error for ExplicitBug { /// Used for emitting structured error messages and other diagnostic information. #[must_use] +#[derive(Clone)] pub struct DiagnosticBuilder<'a> { emitter: &'a RefCell>, level: Level, @@ -187,6 +188,7 @@ pub struct DiagnosticBuilder<'a> { } /// For example a note attached to an error. +#[derive(Clone)] struct SubDiagnostic { level: Level, message: String, -- cgit 1.4.1-3-g733a5