diff options
| author | kennytm <kennytm@gmail.com> | 2017-11-21 03:14:45 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-21 03:14:45 +0800 |
| commit | b32d9ada432d55ab6af2914d93064b6a42cbb39b (patch) | |
| tree | a4f202828c012892b6e283fe8d96ebf022383ecb /src | |
| parent | ac92ea582fbc81c1c6029565cdf60b8ce0853d59 (diff) | |
| parent | 998e3c1aaa0b6b8961b0f685f1bd76f76fc43b67 (diff) | |
| download | rust-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.rs | 2 |
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 } => |
