@@ -24,37 +24,37 @@ borrowck_assign_part_due_to_use_coroutine =
2424 assign to part occurs due to use in coroutine
2525
2626borrowck_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
2828
2929borrowck_assign_place_behind_deref =
30- cannot assign to { $place } , which is behind { $name }
30+ cannot assign to ` { $place } ` , which is behind { $name }
3131
3232borrowck_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 }
3434
3535borrowck_assign_place_behind_ref =
36- cannot assign to { $place } , which is behind a `&` reference
36+ cannot assign to ` { $place } ` , which is behind a `&` reference
3737
3838borrowck_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
4040
4141borrowck_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
4343
4444borrowck_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
4646
4747borrowck_assign_place_static =
48- cannot assign to immutable static item { $place }
48+ cannot assign to immutable static item ` { $place } `
4949
5050borrowck_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
5252
5353borrowck_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
5555
5656borrowck_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
5858
5959borrowck_borrow_due_to_use_closure =
6060 borrow occurs due to use in closure
@@ -96,13 +96,13 @@ borrowck_cannot_assign_to_borrowed =
9696 *[ other ] { $desc }
9797 } is borrowed here
9898
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+
99103borrowck_cannot_borrow_across_destructor =
100104 borrow may still be in use when destructor runs
101105
102- borrowck_cannot_borrow_across_generator_yield =
103- borrow may still be in use when generator yields
104- .label = possible yield occurs here
105-
106106borrowck_cannot_borrow_mut =
107107 cannot borrow as mutable
108108
@@ -396,37 +396,37 @@ borrowck_mut_borrow_data_behind_ref =
396396 cannot borrow data in a `&` reference as mutable
397397
398398borrowck_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
400400
401401borrowck_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
403403
404404borrowck_mut_borrow_place_static =
405- cannot borrow immutable static item { $place } as mutable
405+ cannot borrow immutable static item ` { $place } ` as mutable
406406
407407borrowck_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
409409
410410borrowck_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 }
412412
413413borrowck_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 }
415415
416416borrowck_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
418418
419419borrowck_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
421421
422422borrowck_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
424424
425425borrowck_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
427427
428428borrowck_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
430430
431431borrowck_mutably_borrow_multiply_loop_label =
432432 { $is_place_empty ->
0 commit comments