about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-11-21 03:14:45 +0800
committerGitHub <noreply@github.com>2017-11-21 03:14:45 +0800
commitb32d9ada432d55ab6af2914d93064b6a42cbb39b (patch)
treea4f202828c012892b6e283fe8d96ebf022383ecb /src
parentac92ea582fbc81c1c6029565cdf60b8ce0853d59 (diff)
parent998e3c1aaa0b6b8961b0f685f1bd76f76fc43b67 (diff)
downloadrust-b32d9ada432d55ab6af2914d93064b6a42cbb39b.tar.gz
rust-b32d9ada432d55ab6af2914d93064b6a42cbb39b.zip
Rollup merge of #46119 - ritiek:master, r=arielb1
Fix typo in MIR "cannot move out of borrowed content"

I believe this all we need to change (#46018). Anyway, do let me know if there is anything else that needs to changed as well!
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/borrow_check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/borrow_check.rs b/src/librustc_mir/borrow_check.rs
index cdac72b6dff..ec173ef66f6 100644
--- a/src/librustc_mir/borrow_check.rs
+++ b/src/librustc_mir/borrow_check.rs
@@ -91,7 +91,7 @@ fn do_mir_borrowck<'a, 'gcx, 'tcx>(infcx: &InferCtxt<'a, 'gcx, 'tcx>,
                     IllegalMoveOriginKind::Static =>
                         tcx.cannot_move_out_of(span, "static item", origin),
                     IllegalMoveOriginKind::BorrowedContent =>
-                        tcx.cannot_move_out_of(span, "borrowed_content", origin),
+                        tcx.cannot_move_out_of(span, "borrowed content", origin),
                     IllegalMoveOriginKind::InteriorOfTypeWithDestructor { container_ty: ty } =>
                         tcx.cannot_move_out_of_interior_of_drop(span, ty, origin),
                     IllegalMoveOriginKind::InteriorOfSliceOrArray { ty, is_index } =>