summary refs log tree commit diff
path: root/src/rustdoc
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-01-24 21:42:54 -0800
committerPatrick Walton <pcwalton@mimiga.net>2012-01-24 21:42:54 -0800
commit9ecd5ee81d642fed89246924b240bf3d3b0b8e64 (patch)
treec165baf881e05c443b37a1b965c8b54a8f9a3406 /src/rustdoc
parent4d096a8c860b0f7ff0933a8606f6e39398aebaae (diff)
downloadrust-9ecd5ee81d642fed89246924b240bf3d3b0b8e64.tar.gz
rust-9ecd5ee81d642fed89246924b240bf3d3b0b8e64.zip
rustc: Split diagnostics into "span diagnostics" and "diagnostics".
The former contain a codemap (which is per-crate), and the latter don't. This
will be useful in order to allow more than one crate to be compiled in one run
of the compiler.
Diffstat (limited to 'src/rustdoc')
-rw-r--r--src/rustdoc/parse.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rustdoc/parse.rs b/src/rustdoc/parse.rs
index 11eb469e641..9be1c996451 100644
--- a/src/rustdoc/parse.rs
+++ b/src/rustdoc/parse.rs
@@ -9,10 +9,11 @@ export from_file, from_str;
 
 fn new_parse_sess() -> parser::parse_sess {
     let cm = codemap::new_codemap();
+    let handler = diagnostic::mk_handler(none);
     let sess = @{
         cm: cm,
         mutable next_id: 1,
-        diagnostic: diagnostic::mk_handler(cm, none),
+        span_diagnostic: diagnostic::mk_span_handler(handler, cm),
         mutable chpos: 0u,
         mutable byte_pos: 0u
     };