rustc: Add an accessor to get the diagnostic handler from the session
This commit is contained in:
parent
8f809f89d9
commit
cb2840bcaf
|
@ -108,6 +108,9 @@ impl session for session {
|
|||
fn next_node_id() -> ast::node_id {
|
||||
ret syntax::parse::parser::next_node_id(self.parse_sess);
|
||||
}
|
||||
fn diagnostic() -> diagnostic::span_handler {
|
||||
self.span_diagnostic
|
||||
}
|
||||
}
|
||||
|
||||
// Seems out of place, but it uses session, so I'm putting it here
|
||||
|
|
Loading…
Reference in New Issue