We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc45132 commit 3bc76d2Copy full SHA for 3bc76d2
src/librustc/middle/borrowck/check_loans.rs
@@ -638,8 +638,8 @@ impl<'a> CheckLoanCtxt<'a> {
638
loan_path = match *loan_path {
639
// Peel back one layer if, for `loan_path` to be
640
// mutable, `lp_base` must be mutable. This occurs
641
- // with inherited mutability and with `&mut`
642
- // pointers.
+ // with inherited mutability, owned pointers and
+ // `&mut` pointers.
643
LpExtend(ref lp_base, mc::McInherited, _) |
644
LpExtend(ref lp_base, _, LpDeref(mc::OwnedPtr)) |
645
LpExtend(ref lp_base, _, LpDeref(mc::GcPtr)) |
0 commit comments