2022-08-10 02:42:10 -05:00
|
|
|
borrowck_move_unsized =
|
2022-06-22 23:43:01 -05:00
|
|
|
cannot move a value of type `{$ty}`
|
|
|
|
.label = the size of `{$ty}` cannot be statically determined
|
|
|
|
|
2022-08-10 02:42:10 -05:00
|
|
|
borrowck_higher_ranked_lifetime_error =
|
2022-06-22 23:43:01 -05:00
|
|
|
higher-ranked lifetime error
|
|
|
|
|
2022-08-10 02:42:10 -05:00
|
|
|
borrowck_could_not_prove =
|
2022-06-22 23:43:01 -05:00
|
|
|
could not prove `{$predicate}`
|
|
|
|
|
2022-08-10 02:42:10 -05:00
|
|
|
borrowck_could_not_normalize =
|
2022-06-22 23:43:01 -05:00
|
|
|
could not normalize `{$value}`
|
|
|
|
|
2022-08-10 02:42:10 -05:00
|
|
|
borrowck_higher_ranked_subtype_error =
|
2022-06-22 23:43:01 -05:00
|
|
|
higher-ranked subtype error
|
2022-08-17 04:35:17 -05:00
|
|
|
|
2022-08-17 04:45:35 -05:00
|
|
|
borrowck_generic_does_not_live_long_enough =
|
2022-08-17 04:35:17 -05:00
|
|
|
`{$kind}` does not live long enough
|
2022-08-25 21:32:59 -05:00
|
|
|
|
|
|
|
borrowck_move_borrowed =
|
2023-02-10 03:48:45 -06:00
|
|
|
cannot move out of `{$desc}` because it is borrowed
|
2022-08-25 21:32:59 -05:00
|
|
|
|
|
|
|
borrowck_var_does_not_need_mut =
|
|
|
|
variable does not need to be mutable
|
|
|
|
.suggestion = remove this `mut`
|
|
|
|
|
|
|
|
borrowck_var_cannot_escape_closure =
|
|
|
|
captured variable cannot escape `FnMut` closure body
|
|
|
|
.note = `FnMut` closures only have access to their captured variables while they are executing...
|
|
|
|
.cannot_escape = ...therefore, they cannot allow references to captured variables to escape
|
|
|
|
|
|
|
|
borrowck_var_here_defined = variable defined here
|
|
|
|
|
|
|
|
borrowck_var_here_captured = variable captured here
|
|
|
|
|
2022-10-29 08:14:02 -05:00
|
|
|
borrowck_closure_inferred_mut = inferred to be a `FnMut` closure
|
2022-08-25 21:32:59 -05:00
|
|
|
|
|
|
|
borrowck_returned_closure_escaped =
|
|
|
|
returns a closure that contains a reference to a captured variable, which then escapes the closure body
|
|
|
|
|
|
|
|
borrowck_returned_async_block_escaped =
|
|
|
|
returns an `async` block that contains a reference to a captured variable, which then escapes the closure body
|
|
|
|
|
|
|
|
borrowck_returned_ref_escaped =
|
|
|
|
returns a reference to a captured variable which escapes the closure body
|
|
|
|
|
|
|
|
borrowck_lifetime_constraints_error =
|
|
|
|
lifetime may not live long enough
|
|
|
|
|
|
|
|
borrowck_returned_lifetime_wrong =
|
|
|
|
{$mir_def_name} was supposed to return data with lifetime `{$outlived_fr_name}` but it is returning data with lifetime `{$fr_name}`
|
|
|
|
|
|
|
|
borrowck_returned_lifetime_short =
|
|
|
|
{$category_desc}requires that `{$free_region_name}` must outlive `{$outlived_fr_name}`
|
|
|
|
|
|
|
|
borrowck_used_impl_require_static =
|
|
|
|
the used `impl` has a `'static` requirement
|
2022-10-25 21:42:05 -05:00
|
|
|
|
|
|
|
borrowck_capture_kind_label =
|
|
|
|
capture is {$kind_desc} because of use here
|
|
|
|
|
|
|
|
borrowck_var_borrow_by_use_place_in_generator =
|
|
|
|
borrow occurs due to use of {$place} in closure in generator
|
|
|
|
|
|
|
|
borrowck_var_borrow_by_use_place_in_closure =
|
|
|
|
borrow occurs due to use of {$place} in closure
|
|
|
|
|
|
|
|
borrowck_var_borrow_by_use_place =
|
|
|
|
borrow occurs due to use of {$place}
|
2022-11-04 04:09:14 -05:00
|
|
|
|
|
|
|
borrowck_borrow_due_to_use_generator =
|
|
|
|
borrow occurs due to use in generator
|
|
|
|
|
|
|
|
borrowck_use_due_to_use_generator =
|
|
|
|
use occurs due to use in generator
|
|
|
|
|
|
|
|
borrowck_assign_due_to_use_generator =
|
|
|
|
assign occurs due to use in generator
|
|
|
|
|
|
|
|
borrowck_assign_part_due_to_use_generator =
|
|
|
|
assign to part occurs due to use in generator
|
|
|
|
|
|
|
|
borrowck_borrow_due_to_use_closure =
|
|
|
|
borrow occurs due to use in closure
|
|
|
|
|
|
|
|
borrowck_use_due_to_use_closure =
|
|
|
|
use occurs due to use in closure
|
|
|
|
|
|
|
|
borrowck_assign_due_to_use_closure =
|
2023-02-10 03:48:45 -06:00
|
|
|
assignment occurs due to use in closure
|
2022-11-04 04:09:14 -05:00
|
|
|
|
|
|
|
borrowck_assign_part_due_to_use_closure =
|
2023-02-10 03:48:45 -06:00
|
|
|
assignment to part occurs due to use in closure
|
2022-11-09 06:56:28 -06:00
|
|
|
|
|
|
|
borrowck_capture_immute =
|
|
|
|
capture is immutable because of use here
|
|
|
|
|
|
|
|
borrowck_capture_mut =
|
|
|
|
capture is mutable because of use here
|
|
|
|
|
|
|
|
borrowck_capture_move =
|
|
|
|
capture is moved because of use here
|
|
|
|
|
|
|
|
borrowck_var_move_by_use_place_in_generator =
|
|
|
|
move occurs due to use of {$place} in generator
|
|
|
|
|
|
|
|
borrowck_var_move_by_use_place_in_closure =
|
|
|
|
move occurs due to use of {$place} in closure
|
2022-11-09 06:57:44 -06:00
|
|
|
|
|
|
|
borrowck_cannot_move_when_borrowed =
|
|
|
|
cannot move out of {$place ->
|
|
|
|
[value] value
|
|
|
|
*[other] {$place}
|
|
|
|
} because it is borrowed
|
|
|
|
.label = borrow of {$borrow_place ->
|
|
|
|
[value] value
|
|
|
|
*[other] {$borrow_place}
|
|
|
|
} occurs here
|
|
|
|
.move_label = move out of {$value_place ->
|
|
|
|
[value] value
|
|
|
|
*[other] {$value_place}
|
|
|
|
} occurs here
|
2023-01-16 09:15:09 -06:00
|
|
|
|
|
|
|
borrowck_opaque_type_non_generic_param =
|
|
|
|
expected generic {$kind} parameter, found `{$ty}`
|
2023-01-17 02:21:34 -06:00
|
|
|
.label = {STREQ($ty, "'static") ->
|
|
|
|
[true] cannot use static lifetime; use a bound lifetime instead or remove the lifetime parameter from the opaque type
|
|
|
|
*[other] this generic parameter must be used with a generic {$kind} parameter
|
|
|
|
}
|