diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-03 15:52:26 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-03 16:03:15 +1000 |
| commit | a74a272a5b6ad4f3ab58f8e7251eb98d13e28ebe (patch) | |
| tree | 42c803a09de3c165a8f5970ed14174f6cce41d12 /compiler/rustc_builtin_macros/src | |
| parent | 1ad91bb1eb82df3ec1b954f0612d0f43af039d8e (diff) | |
| download | rust-a74a272a5b6ad4f3ab58f8e7251eb98d13e28ebe.tar.gz rust-a74a272a5b6ad4f3ab58f8e7251eb98d13e28ebe.zip | |
Use `parse` renaming of `rustc_parse_format`.
This is a case where `rustc_parse_format` is renamed as `parse` but a couple of places don't take advantage.
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/format.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_builtin_macros/src/format.rs b/compiler/rustc_builtin_macros/src/format.rs index 2c717661a1c..2450ac8f4b3 100644 --- a/compiler/rustc_builtin_macros/src/format.rs +++ b/compiler/rustc_builtin_macros/src/format.rs @@ -307,7 +307,7 @@ fn make_format_args( return ExpandResult::Ready(Err(guar)); } - let to_span = |inner_span: rustc_parse_format::InnerSpan| { + let to_span = |inner_span: parse::InnerSpan| { is_source_literal.then(|| { fmt_span.from_inner(InnerSpan { start: inner_span.start, end: inner_span.end }) }) @@ -577,7 +577,7 @@ fn make_format_args( fn invalid_placeholder_type_error( ecx: &ExtCtxt<'_>, ty: &str, - ty_span: Option<rustc_parse_format::InnerSpan>, + ty_span: Option<parse::InnerSpan>, fmt_span: Span, ) { let sp = ty_span.map(|sp| fmt_span.from_inner(InnerSpan::new(sp.start, sp.end))); |
