Rename check_for_assignment_to_restricted_or_frozen_location

Rename check_for_assignment_to_restricted_or_frozen_location to
check_for_assignment_to_borrowed_path.
This commit is contained in:
Cameron Zwarich 2014-06-16 15:40:21 -07:00
parent a924d740df
commit 480cd6fb90

View File

@ -660,7 +660,7 @@ impl<'a> CheckLoanCtxt<'a> {
if assignee_cmt.mutbl.is_mutable() {
if check_for_aliasable_mutable_writes(self, assignment_span, assignee_cmt.clone()) {
if mode != euv::Init {
check_for_assignment_to_restricted_or_frozen_location(
check_for_assignment_to_borrowed_path(
self, assignment_id, assignment_span, assignee_cmt.clone());
mark_variable_as_used_mut(self, assignee_cmt);
}
@ -796,7 +796,7 @@ impl<'a> CheckLoanCtxt<'a> {
}
}
fn check_for_assignment_to_restricted_or_frozen_location(
fn check_for_assignment_to_borrowed_path(
this: &CheckLoanCtxt,
assignment_id: ast::NodeId,
assignment_span: Span,