Auto merge of #33484 - murarth:diagnostic-builder-fields, r=brson

Add accessor methods to DiagnosticBuilder
This commit is contained in:
bors 2016-05-09 06:40:56 -07:00
commit 0cc90978e8

View File

@ -311,6 +311,14 @@ impl<'a> DiagnosticBuilder<'a> {
self
}
pub fn message(&self) -> &str {
&self.message
}
pub fn level(&self) -> Level {
self.level
}
/// Convenience function for internal use, clients should use one of the
/// struct_* methods on Handler.
fn new(emitter: &'a RefCell<Box<Emitter>>,