about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-22 17:39:45 -0700
committerBrian Anderson <banderson@mozilla.com>2012-03-29 14:42:30 -0700
commitcb2840bcafcc4e4255c10c74a20ccdec33bb9b63 (patch)
tree75b5cfe86f01f2d2ffc53699ac0a38aeece20668 /src
parent8f809f89d90b946fec02c5062d3fed1818c3db21 (diff)
downloadrust-cb2840bcafcc4e4255c10c74a20ccdec33bb9b63.tar.gz
rust-cb2840bcafcc4e4255c10c74a20ccdec33bb9b63.zip
rustc: Add an accessor to get the diagnostic handler from the session
Diffstat (limited to 'src')
-rw-r--r--src/rustc/driver/session.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rustc/driver/session.rs b/src/rustc/driver/session.rs
index d604db38e15..5d24eb1f46f 100644
--- a/src/rustc/driver/session.rs
+++ b/src/rustc/driver/session.rs
@@ -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