diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 07:52:43 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 16:06:21 +1100 |
| commit | d1d0896c401e3d07e14ed7a339a766bd0da71bd2 (patch) | |
| tree | 5433f7f9463fe88a7793077704bc3ae5856aa8cf /compiler/rustc_expand/src/tests.rs | |
| parent | 73bac456d413378b25210731c64eccc52c2201f7 (diff) | |
| download | rust-d1d0896c401e3d07e14ed7a339a766bd0da71bd2.tar.gz rust-d1d0896c401e3d07e14ed7a339a766bd0da71bd2.zip | |
Rename `ParseSess::with_span_handler` as `ParseSess::with_dcx`.
Diffstat (limited to 'compiler/rustc_expand/src/tests.rs')
| -rw-r--r-- | compiler/rustc_expand/src/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/tests.rs b/compiler/rustc_expand/src/tests.rs index 9c8a9233f56..8ceea575b63 100644 --- a/compiler/rustc_expand/src/tests.rs +++ b/compiler/rustc_expand/src/tests.rs @@ -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()); |
