rustc: Add an accessor to get the diagnostic handler from the session
This commit is contained in:
@@ -108,6 +108,9 @@ impl session for session {
|
|||||||
fn next_node_id() -> ast::node_id {
|
fn next_node_id() -> ast::node_id {
|
||||||
ret syntax::parse::parser::next_node_id(self.parse_sess);
|
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
|
// Seems out of place, but it uses session, so I'm putting it here
|
||||||
|
|||||||
Reference in New Issue
Block a user