Rename ParseSess::with_span_handler
as ParseSess::with_dcx
.
This commit is contained in:
parent
73bac456d4
commit
d1d0896c40
7 changed files with 11 additions and 11 deletions
|
@ -57,7 +57,7 @@ where
|
|||
F: for<'a> FnOnce(&mut Parser<'a>) -> PResult<'a, T>,
|
||||
{
|
||||
let (handler, source_map, output) = create_test_handler();
|
||||
let ps = ParseSess::with_span_handler(handler, source_map);
|
||||
let ps = ParseSess::with_dcx(handler, source_map);
|
||||
let mut p = string_to_parser(&ps, source_str.to_string());
|
||||
let result = f(&mut p);
|
||||
assert!(result.is_ok());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue