Skip to content

Commit 55379a9

Browse files
committed
Use the correct function type for external bare functions
Issue #1022
1 parent d8fb86d commit 55379a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/metadata/tydecode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ fn parse_ty(st: @pstate, sd: str_def) -> ty::t {
247247
}
248248
'f' {
249249
let func = parse_ty_fn(st, sd);
250-
ret ty::mk_fn(st.tcx, ast::proto_fn, func.args, func.ty, func.cf,
250+
ret ty::mk_fn(st.tcx, ast::proto_bare, func.args, func.ty, func.cf,
251251
func.cs);
252252
}
253253
'W' {

0 commit comments

Comments
 (0)