Skip to content

Commit cb2840b

Browse files
committed
rustc: Add an accessor to get the diagnostic handler from the session
1 parent 8f809f8 commit cb2840b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rustc/driver/session.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ impl session for session {
108108
fn next_node_id() -> ast::node_id {
109109
ret syntax::parse::parser::next_node_id(self.parse_sess);
110110
}
111+
fn diagnostic() -> diagnostic::span_handler {
112+
self.span_diagnostic
113+
}
111114
}
112115

113116
// Seems out of place, but it uses session, so I'm putting it here

0 commit comments

Comments
 (0)