File tree 2 files changed +9
-12
lines changed
2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ use syntax::parse::token;
76
76
pub enum categorization {
77
77
cat_rvalue( ty:: Region ) , // temporary val, argument is its scope
78
78
cat_static_item,
79
- cat_copied_upvar( CopiedUpvar ) , // upvar copied into @fn or ~fn env
79
+ cat_copied_upvar( CopiedUpvar ) , // upvar copied into proc env
80
80
cat_upvar( ty:: UpvarId , ty:: UpvarBorrow ) , // by ref upvar from stack closure
81
81
cat_local( ast:: NodeId ) , // local variable
82
82
cat_arg( ast:: NodeId ) , // formal argument
@@ -1092,7 +1092,7 @@ impl<TYPER:Typer> MemCategorizationContext<TYPER> {
1092
1092
~"static item"
1093
1093
}
1094
1094
cat_copied_upvar( _) => {
1095
- ~"captured outer variable in a heap closure "
1095
+ ~"captured outer variable in a proc "
1096
1096
}
1097
1097
cat_rvalue( ..) => {
1098
1098
~"non-lvalue"
Original file line number Diff line number Diff line change @@ -38,17 +38,14 @@ use syntax::ast_util;
38
38
// roughly as follows:
39
39
//
40
40
// struct rust_opaque_box { // see rust_internal.h
41
- // unsigned ref_count; // only used for @fn( )
42
- // type_desc *tydesc ; // describes closure_data struct
43
- // rust_opaque_box *prev; // (used internally by memory alloc )
44
- // rust_opaque_box *next; // (used internally by memory alloc )
41
+ // unsigned ref_count; // obsolete (part of @T's header )
42
+ // fn(void*) *drop_glue ; // destructor (for proc)
43
+ // rust_opaque_box *prev; // obsolete (part of @T's header )
44
+ // rust_opaque_box *next; // obsolete (part of @T's header )
45
45
// struct closure_data {
46
- // type_desc *bound_tdescs[]; // bound descriptors
47
- // struct {
48
- // upvar1_t upvar1;
49
- // ...
50
- // upvarN_t upvarN;
51
- // } bound_data;
46
+ // upvar1_t upvar1;
47
+ // ...
48
+ // upvarN_t upvarN;
52
49
// }
53
50
// };
54
51
//
You can’t perform that action at this time.
0 commit comments