Skip to content

Commit b32d9ad

Browse files
authored
Rollup merge of rust-lang#46119 - ritiek:master, r=arielb1
Fix typo in MIR "cannot move out of borrowed content" I believe this all we need to change (rust-lang#46018). Anyway, do let me know if there is anything else that needs to changed as well!
2 parents ac92ea5 + 998e3c1 commit b32d9ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/librustc_mir/borrow_check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fn do_mir_borrowck<'a, 'gcx, 'tcx>(infcx: &InferCtxt<'a, 'gcx, 'tcx>,
9191
IllegalMoveOriginKind::Static =>
9292
tcx.cannot_move_out_of(span, "static item", origin),
9393
IllegalMoveOriginKind::BorrowedContent =>
94-
tcx.cannot_move_out_of(span, "borrowed_content", origin),
94+
tcx.cannot_move_out_of(span, "borrowed content", origin),
9595
IllegalMoveOriginKind::InteriorOfTypeWithDestructor { container_ty: ty } =>
9696
tcx.cannot_move_out_of_interior_of_drop(span, ty, origin),
9797
IllegalMoveOriginKind::InteriorOfSliceOrArray { ty, is_index } =>

0 commit comments

Comments
 (0)