Skip to content

Commit d5aae1e

Browse files
committed
---
yaml --- r: 110877 b: refs/heads/auto c: 9d570ad h: refs/heads/master i: 110875: 42f99db v: v3
1 parent e0ae26f commit d5aae1e

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: f0c0c2ae91061a2b6041658a6e406c757e4e5483
16+
refs/heads/auto: 9d570ad8c16970e1b2f629d224716f2d7a8b7820
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc/middle/mem_categorization.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ use syntax::parse::token;
7676
pub enum categorization {
7777
cat_rvalue(ty::Region), // temporary val, argument is its scope
7878
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
8080
cat_upvar(ty::UpvarId, ty::UpvarBorrow), // by ref upvar from stack closure
8181
cat_local(ast::NodeId), // local variable
8282
cat_arg(ast::NodeId), // formal argument
@@ -1092,7 +1092,7 @@ impl<TYPER:Typer> MemCategorizationContext<TYPER> {
10921092
~"static item"
10931093
}
10941094
cat_copied_upvar(_) => {
1095-
~"captured outer variable in a heap closure"
1095+
~"captured outer variable in a proc"
10961096
}
10971097
cat_rvalue(..) => {
10981098
~"non-lvalue"

branches/auto/src/librustc/middle/trans/closure.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,14 @@ use syntax::ast_util;
3838
// roughly as follows:
3939
//
4040
// 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)
4545
// 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;
5249
// }
5350
// };
5451
//

0 commit comments

Comments
 (0)