diff options
| author | Michael Goulet <michael@errs.io> | 2024-06-21 18:20:45 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-06-21 19:00:18 -0400 |
| commit | ffd72b1700a6c96b2468e9259fdb4beea11717e0 (patch) | |
| tree | 781817f15b995c9695a5d9f0f7cb36a242254239 /compiler/rustc_const_eval/messages.ftl | |
| parent | ea681ef2814b321177d1eee437b8867d31141754 (diff) | |
| download | rust-ffd72b1700a6c96b2468e9259fdb4beea11717e0.tar.gz rust-ffd72b1700a6c96b2468e9259fdb4beea11717e0.zip | |
Fix remaining cases
Diffstat (limited to 'compiler/rustc_const_eval/messages.ftl')
| -rw-r--r-- | compiler/rustc_const_eval/messages.ftl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/messages.ftl b/compiler/rustc_const_eval/messages.ftl index 1a7e5bd7092..1476fe285ef 100644 --- a/compiler/rustc_const_eval/messages.ftl +++ b/compiler/rustc_const_eval/messages.ftl @@ -341,8 +341,7 @@ const_eval_unallowed_fn_pointer_call = function pointer calls are not allowed in const_eval_unallowed_heap_allocations = allocations are not allowed in {const_eval_const_context}s .label = allocation not allowed in {const_eval_const_context}s - .teach_note = - The value of statics and constants must be known at compile time, and they live for the entire lifetime of a program. Creating a boxed value allocates memory on the heap at runtime, and therefore cannot be done at compile time. + .teach_note = The value of statics and constants must be known at compile time, and they live for the entire lifetime of a program. Creating a boxed value allocates memory on the heap at runtime, and therefore cannot be done at compile time. const_eval_unallowed_inline_asm = inline assembly is not allowed in {const_eval_const_context}s |
