rustc: Box struct_defs

This commit is contained in:
Patrick Walton 2012-08-07 17:46:07 -07:00
parent 175be53e3f
commit 438765da59
13 changed files with 21 additions and 21 deletions

View file

@ -242,7 +242,7 @@ fn encode_module_item_paths(ebml_w: ebml::writer, ecx: @encode_ctxt,
}
fn encode_struct_def(ebml_w: ebml::writer,
struct_def: ast::struct_def,
struct_def: @ast::struct_def,
path: ~[ast::ident],
ident: ast::ident,
&index: ~[entry<~str>]) {

View file

@ -4909,7 +4909,7 @@ fn trans_item(ccx: @crate_ctxt, item: ast::item) {
}
}
fn trans_struct_def(ccx: @crate_ctxt, struct_def: ast::struct_def,
fn trans_struct_def(ccx: @crate_ctxt, struct_def: @ast::struct_def,
tps: ~[ast::ty_param], path: @ast_map::path,
ident: ast::ident, id: ast::node_id) {
if tps.len() == 0u {

View file

@ -2742,7 +2742,7 @@ fn ty_dtor(cx: ctxt, class_id: def_id) -> option<def_id> {
if is_local(class_id) {
match cx.items.find(class_id.node) {
some(ast_map::node_item(@{
node: ast::item_class({ dtor: some(dtor), _ }, _),
node: ast::item_class(@{ dtor: some(dtor), _ }, _),
_
}, _)) =>
some(local_def(dtor.node.id)),

View file

@ -400,7 +400,7 @@ fn check_no_duplicate_fields(tcx: ty::ctxt, fields:
}
fn check_struct(ccx: @crate_ctxt, struct_def: ast::struct_def,
fn check_struct(ccx: @crate_ctxt, struct_def: @ast::struct_def,
id: ast::node_id, span: span) {
let tcx = ccx.tcx;
let class_t = {self_ty: ty::node_id_to_type(tcx, id), node_id: id};

View file

@ -517,7 +517,7 @@ class CoherenceChecker {
}
}
fn create_impl_from_struct(struct_def: ast::struct_def,
fn create_impl_from_struct(struct_def: @ast::struct_def,
ident: ast::ident,
id: node_id)
-> @Impl {

View file

@ -445,7 +445,7 @@ fn convert(ccx: @crate_ctxt, it: @ast::item) {
}
}
fn convert_struct(ccx: @crate_ctxt, rp: bool, struct_def: ast::struct_def,
fn convert_struct(ccx: @crate_ctxt, rp: bool, struct_def: @ast::struct_def,
tps: ~[ast::ty_param], tpt: ty::ty_param_bounds_and_ty,
id: ast::node_id) {
let tcx = ccx.tcx;