• C
    Fix the handling of assignments to owning pointer paths in check_loans · 5aff0e7c
    Cameron Zwarich 提交于
    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.
    5aff0e7c
borrowck-issue-14498.rs 1.6 KB