From 55379a97d4a7c124772d6aa7f5b78166aefd9bdb Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 11 Oct 2011 15:12:49 -0700 Subject: [PATCH] Use the correct function type for external bare functions Issue #1022 --- src/comp/metadata/tydecode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comp/metadata/tydecode.rs b/src/comp/metadata/tydecode.rs index 77ad79d2ae95..6b9d3e96bf5f 100644 --- a/src/comp/metadata/tydecode.rs +++ b/src/comp/metadata/tydecode.rs @@ -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' {