diff --git a/src/librustc/middle/borrowck/doc.rs b/src/librustc/middle/borrowck/doc.rs index 768d1dbb803..3bc725c355d 100644 --- a/src/librustc/middle/borrowck/doc.rs +++ b/src/librustc/middle/borrowck/doc.rs @@ -650,7 +650,7 @@ fn inc_and_get<'a>(p: &'a mut Point) -> &'a int { Let's examine the two numbered clauses: -Clause (1) specifies that tThe lifetime of the loan (`LT`) cannot +Clause (1) specifies that the lifetime of the loan (`LT`) cannot exceed the lifetime of the `&mut` pointer (`LT'`). The reason for this is that the `&mut` pointer is guaranteed to be the only legal way to mutate its referent -- but only for the lifetime `LT'`. After that diff --git a/src/librustc/middle/borrowck/mod.rs b/src/librustc/middle/borrowck/mod.rs index 044d7d566ab..72833749361 100644 --- a/src/librustc/middle/borrowck/mod.rs +++ b/src/librustc/middle/borrowck/mod.rs @@ -671,7 +671,7 @@ pub fn bckerr_to_str(&self, err: BckError) -> ~str { // supposed to be going away. format!("unsafe borrow of aliasable, const value") } - err_borrowed_pointer_too_short(_, _, r) => { + err_borrowed_pointer_too_short(..) => { let descr = match opt_loan_path(err.cmt) { Some(lp) => format!("`{}`", self.loan_path_to_str(lp)), None => self.cmt_to_str(err.cmt),