about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-31 06:16:40 -0700
committerbors <bors@rust-lang.org>2014-05-31 06:16:40 -0700
commit0839e940a517fcf6cf8124b22399e75c31703e2c (patch)
tree5c86a3a89d638f8807d1bed9063458d4dad46a9a
parentbcf3464827e7caebbbdb2404838fbb588cf304f0 (diff)
parent3bc76d27ae8fd02667a337825127266c8f62c6a9 (diff)
downloadrust-0839e940a517fcf6cf8124b22399e75c31703e2c.tar.gz
rust-0839e940a517fcf6cf8124b22399e75c31703e2c.zip
auto merge of #14557 : zwarich/rust/missing-comment, r=alexcrichton
For some reason, I had this comment in my local tree but not in the
branch I sent with the PR.
-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 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)) |