rustdoc: Update tests for rustc diagnostic changes

This commit is contained in:
Brian Anderson 2012-01-24 23:24:31 -08:00
parent 0886b69b76
commit 45a668c439
1 changed files with 2 additions and 1 deletions

View File

@ -343,10 +343,11 @@ mod test {
import rustc::driver::diagnostic;
let cm = rustc::syntax::codemap::new_codemap();
let handler = diagnostic::mk_handler(none);
let parse_sess = @{
cm: cm,
mutable next_id: 0,
diagnostic: diagnostic::mk_handler(cm, none),
span_diagnostic: diagnostic::mk_span_handler(handler, cm),
mutable chpos: 0u,
mutable byte_pos: 0u
};