File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -460,13 +460,15 @@ impl to_str_methods for borrowck_ctxt {
460
460
cat_special( sk_method) { "method" }
461
461
cat_special( sk_static_item) { "static item" }
462
462
cat_special( sk_self) { "self reference" }
463
- cat_special( sk_heap_upvar) { "upvar " }
463
+ cat_special( sk_heap_upvar) { "variable declared in an outer block " }
464
464
cat_rvalue { "non-lvalue" }
465
465
cat_local( _) { mut_str + " local variable" }
466
466
cat_arg( _) { "argument" }
467
467
cat_deref( _, _, pk) { #fmt[ "dereference of %s %s pointer",
468
468
mut_str, self . pk_to_sigil( pk) ] }
469
- cat_stack_upvar( _) { mut_str + " upvar" }
469
+ cat_stack_upvar( _) {
470
+ mut_str + " variable declared in an outer block"
471
+ }
470
472
cat_comp( _, comp_field( * ) ) { mut_str + " field" }
471
473
cat_comp( _, comp_tuple) { "tuple content" }
472
474
cat_comp( _, comp_res) { "resource content" }
@@ -519,4 +521,4 @@ fn inherent_mutability(ck: comp_kind) -> mutability {
519
521
comp_tuple | comp_res | comp_variant ( _) { m_imm}
520
522
comp_field( _, m) | comp_index( _, m) { m}
521
523
}
522
- }
524
+ }
You can’t perform that action at this time.
0 commit comments