]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_borrowck/borrowck/gather_loans/mod.rs
Rollup merge of #45097 - nivkner:fixme_fixup2, r=estebank
[rust.git] / src / librustc_borrowck / borrowck / gather_loans / mod.rs
index 1827ddabe4e2a9d6c7f46e695a96f99166ddbafe..bb39e8ad2e6c223171a099222d7130d6e316a58c 100644 (file)
@@ -406,7 +406,7 @@ fn guarantee_valid(&mut self,
         self.all_loans.push(loan);
 
         // if loan_gen_scope != borrow_id {
-            // FIXME(#6268) Nested method calls
+            // FIXME(https://github.com/rust-lang/rfcs/issues/811) Nested method calls
             //
             // Typically, the scope of the loan includes the point at
             // which the loan is originated. This
@@ -417,9 +417,8 @@ fn guarantee_valid(&mut self,
             //let restr = restrictions::compute_restrictions(
             //    self.bccx, borrow_span, cmt, RESTR_EMPTY);
             //let loan = {
-            //    let all_loans = &mut *self.all_loans; // FIXME(#5074)
             //    Loan {
-            //        index: all_loans.len(),
+            //        index: self.all_loans.len(),
             //        loan_path,
             //        cmt,
             //        mutbl: ConstMutability,