@@ -24,37 +24,37 @@ borrowck_assign_part_due_to_use_coroutine =
24
24
assign to part occurs due to use in coroutine
25
25
26
26
borrowck_assign_place_behind_const_pointer =
27
- cannot assign to { $place } , which is behind a `*const` pointer
27
+ cannot assign to ` { $place } ` , which is behind a `*const` pointer
28
28
29
29
borrowck_assign_place_behind_deref =
30
- cannot assign to { $place } , which is behind { $name }
30
+ cannot assign to ` { $place } ` , which is behind { $name }
31
31
32
32
borrowck_assign_place_behind_index =
33
- cannot assign to { $place } , which is behind an index of { $ty }
33
+ cannot assign to ` { $place } ` , which is behind an index of { $ty }
34
34
35
35
borrowck_assign_place_behind_ref =
36
- cannot assign to { $place } , which is behind a `&` reference
36
+ cannot assign to ` { $place } ` , which is behind a `&` reference
37
37
38
38
borrowck_assign_place_declared_immute =
39
- cannot assign to { $place } , as it is not declared as mutable
39
+ cannot assign to ` { $place } ` , as it is not declared as mutable
40
40
41
41
borrowck_assign_place_in_fn =
42
- cannot assign to { $place } , as it is a captured variable in a `Fn` closure
42
+ cannot assign to ` { $place } ` , as it is a captured variable in a `Fn` closure
43
43
44
44
borrowck_assign_place_in_pattern_guard_immute =
45
- cannot assign to { $place } , as it is immutable for the pattern guard
45
+ cannot assign to ` { $place } ` , as it is immutable for the pattern guard
46
46
47
47
borrowck_assign_place_static =
48
- cannot assign to immutable static item { $place }
48
+ cannot assign to immutable static item ` { $place } `
49
49
50
50
borrowck_assign_symbol_declared_immute =
51
- cannot assign to { $place } , as `{ $name } ` is not declared as mutable
51
+ cannot assign to ` { $place } ` , as `{ $name } ` is not declared as mutable
52
52
53
53
borrowck_assign_symbol_static =
54
- cannot assign to { $place } , as `{ $static_name } ` is an immutable static item
54
+ cannot assign to ` { $place } ` , as `{ $static_name } ` is an immutable static item
55
55
56
56
borrowck_assign_upvar_in_fn =
57
- cannot assign to { $place } , as `Fn` closures cannot mutate their captured variables
57
+ cannot assign to ` { $place } ` , as `Fn` closures cannot mutate their captured variables
58
58
59
59
borrowck_borrow_due_to_use_closure =
60
60
borrow occurs due to use in closure
@@ -96,13 +96,13 @@ borrowck_cannot_assign_to_borrowed =
96
96
*[ other ] { $desc }
97
97
} is borrowed here
98
98
99
+ borrowck_cannot_borrow_across_coroutine_yield =
100
+ borrow may still be in use when { $coroutine_kind } yields
101
+ .label = possible yield occurs here
102
+
99
103
borrowck_cannot_borrow_across_destructor =
100
104
borrow may still be in use when destructor runs
101
105
102
- borrowck_cannot_borrow_across_generator_yield =
103
- borrow may still be in use when generator yields
104
- .label = possible yield occurs here
105
-
106
106
borrowck_cannot_borrow_mut =
107
107
cannot borrow as mutable
108
108
@@ -396,37 +396,37 @@ borrowck_mut_borrow_data_behind_ref =
396
396
cannot borrow data in a `&` reference as mutable
397
397
398
398
borrowck_mut_borrow_place_declared_immute =
399
- cannot borrow { $place } as mutable, as it is not declared as mutable
399
+ cannot borrow ` { $place } ` as mutable, as it is not declared as mutable
400
400
401
401
borrowck_mut_borrow_place_in_pattern_guard_immute =
402
- cannot borrow { $place } as mutable, as it is immutable for the pattern guard
402
+ cannot borrow ` { $place } ` as mutable, as it is immutable for the pattern guard
403
403
404
404
borrowck_mut_borrow_place_static =
405
- cannot borrow immutable static item { $place } as mutable
405
+ cannot borrow immutable static item ` { $place } ` as mutable
406
406
407
407
borrowck_mut_borrow_self_behind_const_pointer =
408
- cannot borrow { $place } as mutable, as it is behind a `*const` pointer
408
+ cannot borrow ` { $place } ` as mutable, as it is behind a `*const` pointer
409
409
410
410
borrowck_mut_borrow_self_behind_deref =
411
- cannot borrow { $place } as mutable, as it is behind { $name }
411
+ cannot borrow ` { $place } ` as mutable, as it is behind { $name }
412
412
413
413
borrowck_mut_borrow_self_behind_index =
414
- cannot borrow { $place } as mutable, as it is behind an index of { $name }
414
+ cannot borrow ` { $place } ` as mutable, as it is behind an index of { $name }
415
415
416
416
borrowck_mut_borrow_self_behind_ref =
417
- cannot borrow { $place } as mutable, as it is behind a `&` reference
417
+ cannot borrow ` { $place } ` as mutable, as it is behind a `&` reference
418
418
419
419
borrowck_mut_borrow_self_in_fn =
420
- cannot borrow { $place } as mutable, as it is a captured variable in a `Fn` closure
420
+ cannot borrow ` { $place } ` as mutable, as it is a captured variable in a `Fn` closure
421
421
422
422
borrowck_mut_borrow_symbol_declared_immute =
423
- cannot borrow { $place } as mutable, as `{ $name } ` is not declared as mutable
423
+ cannot borrow ` { $place } ` as mutable, as `{ $name } ` is not declared as mutable
424
424
425
425
borrowck_mut_borrow_symbol_static =
426
- cannot borrow { $place } as mutable, as `{ $static_name } ` is an immutable static item
426
+ cannot borrow ` { $place } ` as mutable, as `{ $static_name } ` is an immutable static item
427
427
428
428
borrowck_mut_borrow_upvar_in_fn =
429
- cannot borrow { $place } as mutable, as `Fn` closures cannot mutate their captured variables
429
+ cannot borrow ` { $place } ` as mutable, as `Fn` closures cannot mutate their captured variables
430
430
431
431
borrowck_mutably_borrow_multiply_loop_label =
432
432
{ $is_place_empty ->
0 commit comments