fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
7.9 KiB257 linesraw
1borrowck_assign_due_to_use_closure =
2    assignment occurs due to use in closure
3
4borrowck_assign_due_to_use_generator =
5    assign occurs due to use in generator
6
7borrowck_assign_part_due_to_use_closure =
8    assignment to part occurs due to use in closure
9
10borrowck_assign_part_due_to_use_generator =
11    assign to part occurs due to use in generator
12
13borrowck_borrow_due_to_use_closure =
14    borrow occurs due to use in closure
15
16borrowck_borrow_due_to_use_generator =
17    borrow occurs due to use in generator
18
19borrowck_calling_operator_moves_lhs =
20    calling this operator moves the left-hand side
21
22borrowck_cannot_move_when_borrowed =
23    cannot move out of {$place ->
24        [value] value
25        *[other] {$place}
26    } because it is borrowed
27    .label = borrow of {$borrow_place ->
28        [value] value
29        *[other] {$borrow_place}
30    } occurs here
31    .move_label = move out of {$value_place ->
32        [value] value
33        *[other] {$value_place}
34    } occurs here
35
36borrowck_capture_immute =
37    capture is immutable because of use here
38
39borrowck_capture_move =
40    capture is moved because of use here
41
42borrowck_capture_mut =
43    capture is mutable because of use here
44
45borrowck_closure_inferred_mut = inferred to be a `FnMut` closure
46
47borrowck_closure_invoked_twice =
48    closure cannot be invoked more than once because it moves the variable `{$place_name}` out of its environment
49
50borrowck_closure_moved_twice =
51    closure cannot be moved more than once as it is not `Copy` due to moving the variable `{$place_name}` out of its environment
52
53borrowck_consider_borrow_type_contents =
54    help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents
55
56borrowck_could_not_normalize =
57    could not normalize `{$value}`
58
59borrowck_could_not_prove =
60    could not prove `{$predicate}`
61
62borrowck_func_take_self_moved_place =
63    `{$func}` takes ownership of the receiver `self`, which moves {$place_name}
64
65borrowck_generic_does_not_live_long_enough =
66    `{$kind}` does not live long enough
67
68borrowck_higher_ranked_lifetime_error =
69    higher-ranked lifetime error
70
71borrowck_higher_ranked_subtype_error =
72    higher-ranked subtype error
73
74borrowck_lifetime_constraints_error =
75    lifetime may not live long enough
76
77borrowck_move_out_place_here =
78    {$place} is moved here
79
80borrowck_move_unsized =
81    cannot move a value of type `{$ty}`
82    .label = the size of `{$ty}` cannot be statically determined
83
84borrowck_moved_a_fn_once_in_call =
85    this value implements `FnOnce`, which causes it to be moved when called
86
87borrowck_moved_due_to_await =
88    {$place_name} {$is_partial ->
89        [true] partially moved
90        *[false] moved
91    } due to this {$is_loop_message ->
92        [true] await, in previous iteration of loop
93        *[false] await
94    }
95
96borrowck_moved_due_to_call =
97    {$place_name} {$is_partial ->
98        [true] partially moved
99        *[false] moved
100    } due to this {$is_loop_message ->
101        [true] call, in previous iteration of loop
102        *[false] call
103    }
104
105borrowck_moved_due_to_implicit_into_iter_call =
106    {$place_name} {$is_partial ->
107        [true] partially moved
108        *[false] moved
109    } due to this implicit call to {$is_loop_message ->
110        [true] `.into_iter()`, in previous iteration of loop
111        *[false] `.into_iter()`
112    }
113
114borrowck_moved_due_to_method_call =
115    {$place_name} {$is_partial ->
116        [true] partially moved
117        *[false] moved
118    } due to this method {$is_loop_message ->
119        [true] call, in previous iteration of loop
120        *[false] call
121    }
122
123borrowck_moved_due_to_usage_in_operator =
124    {$place_name} {$is_partial ->
125        [true] partially moved
126        *[false] moved
127    } due to usage in {$is_loop_message ->
128        [true] operator, in previous iteration of loop
129        *[false] operator
130    }
131
132borrowck_opaque_type_non_generic_param =
133    expected generic {$kind} parameter, found `{$ty}`
134    .label = {STREQ($ty, "'static") ->
135        [true] cannot use static lifetime; use a bound lifetime instead or remove the lifetime parameter from the opaque type
136        *[other] this generic parameter must be used with a generic {$kind} parameter
137    }
138
139borrowck_partial_var_move_by_use_in_closure =
140    variable {$is_partial ->
141        [true] partially moved
142        *[false] moved
143    } due to use in closure
144
145borrowck_partial_var_move_by_use_in_generator =
146    variable {$is_partial ->
147        [true] partially moved
148        *[false] moved
149    } due to use in generator
150
151borrowck_returned_async_block_escaped =
152    returns an `async` block that contains a reference to a captured variable, which then escapes the closure body
153
154borrowck_returned_closure_escaped =
155    returns a closure that contains a reference to a captured variable, which then escapes the closure body
156
157borrowck_returned_lifetime_short =
158    {$category_desc}requires that `{$free_region_name}` must outlive `{$outlived_fr_name}`
159
160borrowck_returned_lifetime_wrong =
161    {$mir_def_name} was supposed to return data with lifetime `{$outlived_fr_name}` but it is returning data with lifetime `{$fr_name}`
162
163borrowck_returned_ref_escaped =
164    returns a reference to a captured variable which escapes the closure body
165
166borrowck_simd_shuffle_last_const = last argument of `simd_shuffle` is required to be a `const` item
167
168borrowck_suggest_create_freash_reborrow =
169    consider reborrowing the `Pin` instead of moving it
170
171borrowck_suggest_iterate_over_slice =
172    consider iterating over a slice of the `{$ty}`'s content to avoid moving into the `for` loop
173
174borrowck_ty_no_impl_copy =
175    {$is_partial_move ->
176        [true] partial move
177        *[false] move
178    } occurs because {$place} has type `{$ty}`, which does not implement the `Copy` trait
179
180borrowck_use_due_to_use_closure =
181    use occurs due to use in closure
182
183borrowck_use_due_to_use_generator =
184    use occurs due to use in generator
185
186borrowck_used_impl_require_static =
187    the used `impl` has a `'static` requirement
188
189borrowck_value_capture_here =
190    value captured {$is_within ->
191        [true] here by generator
192        *[false] here
193    }
194
195borrowck_value_moved_here =
196    value {$is_partial ->
197        [true] partially moved
198        *[false] moved
199    } {$is_move_msg ->
200        [true] into closure here
201        *[false] here
202    }{$is_loop_message ->
203        [true] , in previous iteration of loop
204        *[false] {""}
205    }
206
207borrowck_var_borrow_by_use_in_closure =
208    borrow occurs due to use in closure
209
210borrowck_var_borrow_by_use_in_generator =
211    borrow occurs due to use in generator
212
213borrowck_var_borrow_by_use_place_in_closure =
214    {$is_single_var ->
215        *[true] borrow occurs
216        [false] borrows occur
217    } due to use of {$place} in closure
218
219borrowck_var_borrow_by_use_place_in_generator =
220    {$is_single_var ->
221        *[true] borrow occurs
222        [false] borrows occur
223    } due to use of {$place} in generator
224
225borrowck_var_cannot_escape_closure =
226    captured variable cannot escape `FnMut` closure body
227    .note = `FnMut` closures only have access to their captured variables while they are executing...
228    .cannot_escape = ...therefore, they cannot allow references to captured variables to escape
229
230borrowck_var_does_not_need_mut =
231    variable does not need to be mutable
232    .suggestion = remove this `mut`
233
234borrowck_var_first_borrow_by_use_place_in_closure =
235    first borrow occurs due to use of {$place} in closure
236
237borrowck_var_first_borrow_by_use_place_in_generator =
238    first borrow occurs due to use of {$place} in generator
239
240borrowck_var_here_captured = variable captured here
241
242borrowck_var_here_defined = variable defined here
243
244borrowck_var_move_by_use_in_closure =
245    move occurs due to use in closure
246
247borrowck_var_move_by_use_in_generator =
248    move occurs due to use in generator
249
250borrowck_var_mutable_borrow_by_use_place_in_closure =
251    mutable borrow occurs due to use of {$place} in closure
252
253borrowck_var_second_borrow_by_use_place_in_closure =
254    second borrow occurs due to use of {$place} in closure
255
256borrowck_var_second_borrow_by_use_place_in_generator =
257    second borrow occurs due to use of {$place} in generator