diff options
| author | Cameron Zwarich <zwarich@mozilla.com> | 2014-05-30 22:31:05 -0700 |
|---|---|---|
| committer | Cameron Zwarich <zwarich@mozilla.com> | 2014-05-30 22:31:05 -0700 |
| commit | 3bc76d27ae8fd02667a337825127266c8f62c6a9 (patch) | |
| tree | d01c54161e8b6e18f1f22095b032ff1c8520243f | |
| parent | cc4513202d6f9c6896054ebaa1d99230b06e9f10 (diff) | |
| download | rust-3bc76d27ae8fd02667a337825127266c8f62c6a9.tar.gz rust-3bc76d27ae8fd02667a337825127266c8f62c6a9.zip | |
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.
| -rw-r--r-- | src/librustc/middle/borrowck/check_loans.rs | 4 |
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 77fad454e6e..aef549911cb 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)) | |
