rustc: remove the last mentions of @fn.

This commit is contained in:
Eduard Burtescu 2014-04-09 16:29:29 +03:00
parent f0c0c2ae91
commit 9d570ad8c1
2 changed files with 9 additions and 12 deletions

View File

@ -76,7 +76,7 @@ use syntax::parse::token;
pub enum categorization {
cat_rvalue(ty::Region), // temporary val, argument is its scope
cat_static_item,
cat_copied_upvar(CopiedUpvar), // upvar copied into @fn or ~fn env
cat_copied_upvar(CopiedUpvar), // upvar copied into proc env
cat_upvar(ty::UpvarId, ty::UpvarBorrow), // by ref upvar from stack closure
cat_local(ast::NodeId), // local variable
cat_arg(ast::NodeId), // formal argument
@ -1092,7 +1092,7 @@ impl<TYPER:Typer> MemCategorizationContext<TYPER> {
~"static item"
}
cat_copied_upvar(_) => {
~"captured outer variable in a heap closure"
~"captured outer variable in a proc"
}
cat_rvalue(..) => {
~"non-lvalue"

View File

@ -38,17 +38,14 @@ use syntax::ast_util;
// roughly as follows:
//
// struct rust_opaque_box { // see rust_internal.h
// unsigned ref_count; // only used for @fn()
// type_desc *tydesc; // describes closure_data struct
// rust_opaque_box *prev; // (used internally by memory alloc)
// rust_opaque_box *next; // (used internally by memory alloc)
// unsigned ref_count; // obsolete (part of @T's header)
// fn(void*) *drop_glue; // destructor (for proc)
// rust_opaque_box *prev; // obsolete (part of @T's header)
// rust_opaque_box *next; // obsolete (part of @T's header)
// struct closure_data {
// type_desc *bound_tdescs[]; // bound descriptors
// struct {
// upvar1_t upvar1;
// ...
// upvarN_t upvarN;
// } bound_data;
// upvar1_t upvar1;
// ...
// upvarN_t upvarN;
// }
// };
//