diff options
Diffstat (limited to 'src/libsyntax/errors')
| -rw-r--r-- | src/libsyntax/errors/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<Box<Emitter>>, 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, |
