Address nits for PR for #9629
This commit is contained in:
parent
22f14fb27f
commit
9f7baedc62
@ -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
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user