diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-13 10:31:09 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-14 09:46:02 +1100 |
| commit | 2de99ec787c80d4ba5ac4638d371a5bd8b752795 (patch) | |
| tree | 2fca70a0131224fe9c1072d3fc91fbce5c1e7ee2 /compiler/rustc_errors/src | |
| parent | d78329b92e8d141d19505e7c1527181c4ab87ed4 (diff) | |
| download | rust-2de99ec787c80d4ba5ac4638d371a5bd8b752795.tar.gz rust-2de99ec787c80d4ba5ac4638d371a5bd8b752795.zip | |
Reformat `struct_span_code_err!`.
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic_builder.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_builder.rs b/compiler/rustc_errors/src/diagnostic_builder.rs index bd7c58d904e..93b2dd61b05 100644 --- a/compiler/rustc_errors/src/diagnostic_builder.rs +++ b/compiler/rustc_errors/src/diagnostic_builder.rs @@ -437,11 +437,7 @@ impl<G: EmissionGuarantee> Drop for DiagnosticBuilder<'_, G> { #[macro_export] macro_rules! struct_span_code_err { ($dcx:expr, $span:expr, $code:ident, $($message:tt)*) => ({ - $dcx.struct_span_err( - $span, - format!($($message)*), - ) - .with_code($crate::error_code!($code)) + $dcx.struct_span_err($span, format!($($message)*)).with_code($crate::error_code!($code)) }) } |
