Skip to content

Commit

Permalink
Revert "change borrowck error msg: 'declared in outer block' -> 'capt…
Browse files Browse the repository at this point in the history
…ured in a closure'"

This change requires some tests to be updated.

This reverts commit b5b8f5e.
  • Loading branch information
brson committed Jul 8, 2012
1 parent d0e69a9 commit ea03315
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/rustc/middle/borrowck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,17 +467,15 @@ impl to_str_methods for borrowck_ctxt {
cat_special(sk_method) { "method" }
cat_special(sk_static_item) { "static item" }
cat_special(sk_self) { "self reference" }
cat_special(sk_heap_upvar) {
"captured outer variable from within a heap closure"
}
cat_special(sk_heap_upvar) { "variable declared in an outer block" }
cat_rvalue { "non-lvalue" }
cat_local(_) { mut_str + " local variable" }
cat_binding(_) { "pattern binding" }
cat_arg(_) { "argument" }
cat_deref(_, _, pk) { #fmt["dereference of %s %s pointer",
mut_str, self.pk_to_sigil(pk)] }
cat_stack_upvar(_) {
"captured " + mut_str + " variable from within a stack closure"
mut_str + " variable declared in an outer block"
}
cat_comp(_, comp_field(*)) { mut_str + " field" }
cat_comp(_, comp_tuple) { "tuple content" }
Expand Down

0 comments on commit ea03315

Please sign in to comment.