about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@mozilla.com>2014-05-29 21:17:49 -0700
committerCameron Zwarich <zwarich@mozilla.com>2014-05-29 22:02:57 -0700
commit5aff0e7cec9a3833ea67477bca13efcb4d950db7 (patch)
treef5158518c790ed91d3f76ee8a47e1a7b1c833809 /src/libstd/rt
parent81c022317a67042f6eef9491a12d6bdb10cf6e46 (diff)
downloadrust-5aff0e7cec9a3833ea67477bca13efcb4d950db7.tar.gz
rust-5aff0e7cec9a3833ea67477bca13efcb4d950db7.zip
Fix the handling of assignments to owning pointer paths in check_loans
Make check_for_assignment_to_restricted_or_frozen_location treat
mutation through an owning pointer the same way it treats mutation
through an &mut pointer, where mutability must be inherited from the
base path.

I also included GC pointers in this check, as that is what the
corresponding code in gather_loans/restrictions.rs does, but I don't
think there is a way to test this with the current language.

Fixes #14498.
Diffstat (limited to 'src/libstd/rt')
0 files changed, 0 insertions, 0 deletions