about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret/call.rs
diff options
context:
space:
mode:
authortiif <pekyuan@gmail.com>2025-01-21 08:08:58 +0000
committertiif <pekyuan@gmail.com>2025-03-12 14:38:51 +0000
commit701b1948abd46425ab588108bb406b7519ec16fa (patch)
tree74efd2718d56307d7656fd4c854f81669b826e61 /compiler/rustc_const_eval/src/interpret/call.rs
parent0998d4095b0f11061f78a3f9c77a87838a4c1cb7 (diff)
downloadrust-701b1948abd46425ab588108bb406b7519ec16fa.tar.gz
rust-701b1948abd46425ab588108bb406b7519ec16fa.zip
impl Display for Conv
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/call.rs')
-rw-r--r--compiler/rustc_const_eval/src/interpret/call.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/call.rs b/compiler/rustc_const_eval/src/interpret/call.rs
index 29f819cca1f..35e25187701 100644
--- a/compiler/rustc_const_eval/src/interpret/call.rs
+++ b/compiler/rustc_const_eval/src/interpret/call.rs
@@ -353,8 +353,8 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
         if caller_fn_abi.conv != callee_fn_abi.conv {
             throw_ub_custom!(
                 fluent::const_eval_incompatible_calling_conventions,
-                callee_conv = format!("{:?}", callee_fn_abi.conv),
-                caller_conv = format!("{:?}", caller_fn_abi.conv),
+                callee_conv = format!("{}", callee_fn_abi.conv),
+                caller_conv = format!("{}", caller_fn_abi.conv),
             )
         }