about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2024-07-23 23:31:34 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2024-07-25 20:12:14 +0100
commitd4ca1ac8b9d96ebb32b9bde8a7485b1ac857c10d (patch)
tree2b9557e40054d18f1800ffec76ac51560ec6b070
parentc77b56901fc8098c36717a7620b1c89d3f01c14e (diff)
downloadrust-d4ca1ac8b9d96ebb32b9bde8a7485b1ac857c10d.tar.gz
rust-d4ca1ac8b9d96ebb32b9bde8a7485b1ac857c10d.zip
rustfmt
-rw-r--r--compiler/rustc_hir_analysis/src/collect/type_of.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_hir_analysis/src/collect/type_of.rs b/compiler/rustc_hir_analysis/src/collect/type_of.rs
index 001b2190fc7..75826936c09 100644
--- a/compiler/rustc_hir_analysis/src/collect/type_of.rs
+++ b/compiler/rustc_hir_analysis/src/collect/type_of.rs
@@ -77,11 +77,7 @@ fn anon_const_type_of<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId) -> Ty<'tcx> {
                         .with_help("`sym` operands must refer to either a function or a static")
                         .emit();
 
-                    Ty::new_error_with_message(
-                        tcx,
-                        span,
-                        format!("invalid type for `sym` operand"),
-                    )
+                    Ty::new_error_with_message(tcx, span, format!("invalid type for `sym` operand"))
                 }
             }
         }