diff options
| author | Ralf Jung <post@ralfj.de> | 2025-07-27 16:24:48 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-07-27 22:26:10 +0200 |
| commit | 296586fb026539916a39b79af9a2c3440ce93976 (patch) | |
| tree | e641885035c0dcd7ef49e632fc95ccd1534a9a4a /compiler/rustc_const_eval/messages.ftl | |
| parent | 86ef32029427cfc4161a3fd7a51992302f7c5552 (diff) | |
| download | rust-296586fb026539916a39b79af9a2c3440ce93976.tar.gz rust-296586fb026539916a39b79af9a2c3440ce93976.zip | |
miri: for ABI mismatch errors, say which argument is the problem
Diffstat (limited to 'compiler/rustc_const_eval/messages.ftl')
| -rw-r--r-- | compiler/rustc_const_eval/messages.ftl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_const_eval/messages.ftl b/compiler/rustc_const_eval/messages.ftl index aa0bc42d448..2985eafb63a 100644 --- a/compiler/rustc_const_eval/messages.ftl +++ b/compiler/rustc_const_eval/messages.ftl @@ -128,15 +128,15 @@ const_eval_frame_note_inner = inside {$where_ -> const_eval_frame_note_last = the failure occurred here +const_eval_incompatible_arg_types = + calling a function whose parameter #{$arg_idx} has type {$callee_ty} passing argument of type {$caller_ty} + const_eval_incompatible_calling_conventions = calling a function with calling convention "{$callee_conv}" using calling convention "{$caller_conv}" const_eval_incompatible_return_types = calling a function with return type {$callee_ty} passing return place of type {$caller_ty} -const_eval_incompatible_types = - calling a function with argument of type {$callee_ty} passing data of type {$caller_ty} - const_eval_interior_mutable_borrow_escaping = interior mutable shared borrows of temporaries that have their lifetime extended until the end of the program are not allowed .label = this borrow of an interior mutable value refers to such a temporary |
