diff options
| author | Cameron Zwarich <zwarich@mozilla.com> | 2014-05-29 21:17:49 -0700 |
|---|---|---|
| committer | Cameron Zwarich <zwarich@mozilla.com> | 2014-05-29 22:02:57 -0700 |
| commit | 5aff0e7cec9a3833ea67477bca13efcb4d950db7 (patch) | |
| tree | f5158518c790ed91d3f76ee8a47e1a7b1c833809 /src/libstd | |
| parent | 81c022317a67042f6eef9491a12d6bdb10cf6e46 (diff) | |
| download | rust-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')
0 files changed, 0 insertions, 0 deletions
