diff --git a/src/librustc/middle/borrowck/check_loans.rs b/src/librustc/middle/borrowck/check_loans.rs index 140bfcd684a..235775c58f5 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)) |