Skip to content

Commit 5101688

Browse files
committed
Addressed trailing newlines, odd whitespace skipped by x.py fmt
1 parent 066796c commit 5101688

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

compiler/rustc_error_messages/locales/en-US/const_eval.ftl

+13-13
Original file line numberDiff line numberDiff line change
@@ -38,33 +38,33 @@ const_eval_unstable_const_fn = `{$def_path}` is not yet stable as a const fn
3838
3939
const_eval_unallowed_mutable_refs =
4040
mutable references are not allowed in the final value of {$kind}s
41-
.teach_note =
41+
.teach_note =
4242
References in statics and constants may only refer to immutable values.\n\n
43-
Statics are shared everywhere, and if they refer to mutable data one might violate memory
43+
Statics are shared everywhere, and if they refer to mutable data one might violate memory
4444
safety since holding multiple mutable references to shared data is not allowed.\n\n
4545
If you really want global mutable state, try using static mut or a global UnsafeCell.
4646
4747
const_eval_unallowed_mutable_refs_raw =
4848
raw mutable references are not allowed in the final value of {$kind}s
49-
.teach_note =
49+
.teach_note =
5050
References in statics and constants may only refer to immutable values.\n\n
51-
Statics are shared everywhere, and if they refer to mutable data one might violate memory
51+
Statics are shared everywhere, and if they refer to mutable data one might violate memory
5252
safety since holding multiple mutable references to shared data is not allowed.\n\n
5353
If you really want global mutable state, try using static mut or a global UnsafeCell.
5454
55-
const_eval_non_const_fmt_macro_call =
55+
const_eval_non_const_fmt_macro_call =
5656
cannot call non-const formatting macro in {$kind}s
5757
58-
const_eval_non_const_fn_call =
58+
const_eval_non_const_fn_call =
5959
cannot call non-const fn `{$def_path_str}` in {$kind}s
6060
61-
const_eval_unallowed_op_in_const_context =
61+
const_eval_unallowed_op_in_const_context =
6262
{$msg}
6363
6464
const_eval_unallowed_heap_allocations =
6565
allocations are not allowed in {$kind}s
6666
.label = allocation not allowed in {$kind}s
67-
.teach_note =
67+
.teach_note =
6868
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.
6969
7070
const_eval_unallowed_inline_asm =
@@ -74,10 +74,10 @@ const_eval_interior_mutable_data_refer =
7474
{$kind}s cannot refer to interior mutable data
7575
.label = this borrow of an interior mutable value may end up in the final value
7676
.help = to fix this, the value can be extracted to a separate `static` item and then referenced
77-
.teach_note =
78-
A constant containing interior mutable data behind a reference can allow you to modify that data.
79-
This would make multiple uses of a constant to be able to see different values and allow circumventing
77+
.teach_note =
78+
A constant containing interior mutable data behind a reference can allow you to modify that data.
79+
This would make multiple uses of a constant to be able to see different values and allow circumventing
8080
the `Send` and `Sync` requirements for shared mutable data, which is unsound.
8181
82-
const_eval_interior_mutability_borrow =
83-
cannot borrow here, since the borrowed element may contain interior mutability
82+
const_eval_interior_mutability_borrow =
83+
cannot borrow here, since the borrowed element may contain interior mutability

0 commit comments

Comments
 (0)