about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-01-13 10:31:09 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-01-14 09:46:02 +1100
commit2de99ec787c80d4ba5ac4638d371a5bd8b752795 (patch)
tree2fca70a0131224fe9c1072d3fc91fbce5c1e7ee2 /compiler/rustc_errors/src
parentd78329b92e8d141d19505e7c1527181c4ab87ed4 (diff)
downloadrust-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.rs6
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))
     })
 }