Long line police.
This commit is contained in:
parent
3bf775e80f
commit
f3b7aa9068
1 changed files with 5 additions and 3 deletions
|
@ -1042,8 +1042,9 @@ fn collect_item(&@trans_ctxt cx, @ast.item i) -> @trans_ctxt {
|
||||||
alt (i.node) {
|
alt (i.node) {
|
||||||
case (ast.item_fn(?name, ?f, ?fid)) {
|
case (ast.item_fn(?name, ?f, ?fid)) {
|
||||||
cx.items.insert(fid, i);
|
cx.items.insert(fid, i);
|
||||||
let vec[TypeRef] args = vec(T_ptr(type_of(cx, f.output)), // outptr.
|
let vec[TypeRef] args =
|
||||||
T_taskptr() // taskptr
|
vec(T_ptr(type_of(cx, f.output)), // outptr.
|
||||||
|
T_taskptr() // taskptr
|
||||||
);
|
);
|
||||||
let vec[TypeRef] T_explicit_args = vec();
|
let vec[TypeRef] T_explicit_args = vec();
|
||||||
for (ast.arg arg in f.inputs) {
|
for (ast.arg arg in f.inputs) {
|
||||||
|
@ -1066,7 +1067,8 @@ fn collect_item(&@trans_ctxt cx, @ast.item i) -> @trans_ctxt {
|
||||||
|
|
||||||
fn collect_items(@trans_ctxt cx, @ast.crate crate) {
|
fn collect_items(@trans_ctxt cx, @ast.crate crate) {
|
||||||
|
|
||||||
let fold.ast_fold[@trans_ctxt] fld = fold.new_identity_fold[@trans_ctxt]();
|
let fold.ast_fold[@trans_ctxt] fld =
|
||||||
|
fold.new_identity_fold[@trans_ctxt]();
|
||||||
|
|
||||||
fld = @rec( update_env_for_item = bind collect_item(_,_)
|
fld = @rec( update_env_for_item = bind collect_item(_,_)
|
||||||
with *fld );
|
with *fld );
|
||||||
|
|
Loading…
Reference in a new issue