Use the correct function type for external bare functions

Issue #1022
This commit is contained in:
Brian Anderson 2011-10-11 15:12:49 -07:00
parent d8fb86d2e3
commit 55379a97d4

View file

@ -247,7 +247,7 @@ fn parse_ty(st: @pstate, sd: str_def) -> ty::t {
}
'f' {
let func = parse_ty_fn(st, sd);
ret ty::mk_fn(st.tcx, ast::proto_fn, func.args, func.ty, func.cf,
ret ty::mk_fn(st.tcx, ast::proto_bare, func.args, func.ty, func.cf,
func.cs);
}
'W' {