Skip to content

Commit 45a668c

Browse files
committed
rustdoc: Update tests for rustc diagnostic changes
1 parent 0886b69 commit 45a668c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rustdoc/attr_parser.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,11 @@ mod test {
343343
import rustc::driver::diagnostic;
344344

345345
let cm = rustc::syntax::codemap::new_codemap();
346+
let handler = diagnostic::mk_handler(none);
346347
let parse_sess = @{
347348
cm: cm,
348349
mutable next_id: 0,
349-
diagnostic: diagnostic::mk_handler(cm, none),
350+
span_diagnostic: diagnostic::mk_span_handler(handler, cm),
350351
mutable chpos: 0u,
351352
mutable byte_pos: 0u
352353
};

0 commit comments

Comments
 (0)