diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-05-17 15:45:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-17 15:45:19 +0200 |
| commit | 836db3ccae0b7cfb21a1da01c3f4bb6dea81daae (patch) | |
| tree | e9407f9748331664a4d56d8efc02e8d2933d2e92 /compiler/rustc_const_eval/src/interpret/call.rs | |
| parent | a43b8d1d2b10bf4d9e9d935aed497f7ebbeeb6e4 (diff) | |
| parent | 41a2260bc7d7388a6ef2b0dfa7a980c977e26081 (diff) | |
| download | rust-836db3ccae0b7cfb21a1da01c3f4bb6dea81daae.tar.gz rust-836db3ccae0b7cfb21a1da01c3f4bb6dea81daae.zip | |
Rollup merge of #135808 - tiif:conv_display, r=workingjubilee
Implement Display for ``rustc_target::callconv::Conv`` Follow up of https://github.com/rust-lang/rust/pull/133103#discussion_r1885552854
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/call.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/call.rs | 4 |
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 216800717fd..405208e94f4 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), ) } |
