Skip to content

Commit 480cd6f

Browse files
author
Cameron Zwarich
committed
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.
1 parent a924d74 commit 480cd6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/borrowck/check_loans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ impl<'a> CheckLoanCtxt<'a> {
660660
if assignee_cmt.mutbl.is_mutable() {
661661
if check_for_aliasable_mutable_writes(self, assignment_span, assignee_cmt.clone()) {
662662
if mode != euv::Init {
663-
check_for_assignment_to_restricted_or_frozen_location(
663+
check_for_assignment_to_borrowed_path(
664664
self, assignment_id, assignment_span, assignee_cmt.clone());
665665
mark_variable_as_used_mut(self, assignee_cmt);
666666
}
@@ -796,7 +796,7 @@ impl<'a> CheckLoanCtxt<'a> {
796796
}
797797
}
798798

799-
fn check_for_assignment_to_restricted_or_frozen_location(
799+
fn check_for_assignment_to_borrowed_path(
800800
this: &CheckLoanCtxt,
801801
assignment_id: ast::NodeId,
802802
assignment_span: Span,

0 commit comments

Comments
 (0)