about summary refs log tree commit diff
path: root/compiler/rustc_middle/messages.ftl
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2023-05-17 10:30:14 +0000
committerDeadbeef <ent3rm4n@gmail.com>2023-06-01 14:45:18 +0000
commit4f83717cf768adb0b0dfe23b8eecf2b259eec354 (patch)
treebac79441d2e21eda2a702697484bba96d7cacf7e /compiler/rustc_middle/messages.ftl
parent642c92e63008ffb49f6ad8344e07bfa7d5b0d9bb (diff)
downloadrust-4f83717cf768adb0b0dfe23b8eecf2b259eec354.tar.gz
rust-4f83717cf768adb0b0dfe23b8eecf2b259eec354.zip
Use translatable diagnostics in `rustc_const_eval`
Diffstat (limited to 'compiler/rustc_middle/messages.ftl')
-rw-r--r--compiler/rustc_middle/messages.ftl35
1 files changed, 35 insertions, 0 deletions
diff --git a/compiler/rustc_middle/messages.ftl b/compiler/rustc_middle/messages.ftl
index 3d581daa925..bb7147ac80f 100644
--- a/compiler/rustc_middle/messages.ftl
+++ b/compiler/rustc_middle/messages.ftl
@@ -1,3 +1,38 @@
+middle_adjust_for_foreign_abi_error =
+    target architecture {$arch} does not support `extern {$abi}` ABI
+
+middle_assert_async_resume_after_panic = `async fn` resumed after panicking
+
+middle_assert_async_resume_after_return = `async fn` resumed after completion
+
+middle_assert_divide_by_zero =
+    attempt to divide `{$val}` by zero
+
+middle_assert_generator_resume_after_panic = generator resumed after panicking
+
+middle_assert_generator_resume_after_return = generator resumed after completion
+
+middle_assert_misaligned_ptr_deref =
+    misaligned pointer dereference: address must be a multiple of {$required} but is {$found}
+
+middle_assert_op_overflow =
+    attempt to compute `{$left} {$op} {$right}`, which would overflow
+
+middle_assert_overflow_neg =
+    attempt to negate `{$val}`, which would overflow
+
+middle_assert_remainder_by_zero =
+    attempt to calculate the remainder of `{$val}` with a divisor of zero
+
+middle_assert_shl_overflow =
+    attempt to shift left by `{$val}`, which would overflow
+
+middle_assert_shr_overflow =
+    attempt to shift right by `{$val}`, which would overflow
+
+middle_bounds_check =
+    index out of bounds: the length is {$len} but the index is {$index}
+
 middle_cannot_be_normalized =
     unable to determine layout for `{$ty}` because `{$failure_ty}` cannot be normalized