From 3bc76d27ae8fd02667a337825127266c8f62c6a9 Mon Sep 17 00:00:00 2001 From: Cameron Zwarich Date: Fri, 30 May 2014 22:31:05 -0700 Subject: [PATCH] Add a comment missing from 5aff0e7 For some reason, I had this comment in my local tree but not in the branch I sent with the PR. --- src/librustc/middle/borrowck/check_loans.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/middle/borrowck/check_loans.rs b/src/librustc/middle/borrowck/check_loans.rs index 77fad454e6ec4..aef549911cb04 100644 --- a/src/librustc/middle/borrowck/check_loans.rs +++ b/src/librustc/middle/borrowck/check_loans.rs @@ -638,8 +638,8 @@ impl<'a> CheckLoanCtxt<'a> { loan_path = match *loan_path { // Peel back one layer if, for `loan_path` to be // mutable, `lp_base` must be mutable. This occurs - // with inherited mutability and with `&mut` - // pointers. + // with inherited mutability, owned pointers and + // `&mut` pointers. LpExtend(ref lp_base, mc::McInherited, _) | LpExtend(ref lp_base, _, LpDeref(mc::OwnedPtr)) | LpExtend(ref lp_base, _, LpDeref(mc::GcPtr)) |