]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_borrowck/borrowck/check_loans.rs
Fallout from stabilization.
[rust.git] / src / librustc_borrowck / borrowck / check_loans.rs
index d5ad201eabfaaa959768054b73f5568d893acb0f..0ade916f6390a34c0b6350e850ab9372a4eeafa7 100644 (file)
@@ -370,7 +370,7 @@ pub fn check_for_conflicting_loans(&self, scope: region::CodeExtent) {
 
         for (i, &x) in new_loan_indices.iter().enumerate() {
             let old_loan = &self.all_loans[x];
-            for &y in new_loan_indices.slice_from(i+1).iter() {
+            for &y in new_loan_indices[(i+1) ..].iter() {
                 let new_loan = &self.all_loans[y];
                 self.report_error_if_loans_conflict(old_loan, new_loan);
             }