about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@mozilla.com>2014-06-16 15:40:21 -0700
committerCameron Zwarich <zwarich@mozilla.com>2014-06-16 15:40:21 -0700
commit480cd6fb9052e3db33e01c94e1193f80801b292f (patch)
tree04282614c1283c74e0fa930e6685442ed86617e7
parenta924d740df600e2a71656ed477711b0f2a68c722 (diff)
downloadrust-480cd6fb9052e3db33e01c94e1193f80801b292f.tar.gz
rust-480cd6fb9052e3db33e01c94e1193f80801b292f.zip
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.
-rw-r--r--src/librustc/middle/borrowck/check_loans.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/middle/borrowck/check_loans.rs b/src/librustc/middle/borrowck/check_loans.rs
index 5c18001930e..166d069880f 100644
--- a/src/librustc/middle/borrowck/check_loans.rs
+++ b/src/librustc/middle/borrowck/check_loans.rs
@@ -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,