]> git.lizzy.rs Git - rust.git/commitdiff
Use the correct function type for external bare functions
authorBrian Anderson <banderson@mozilla.com>
Tue, 11 Oct 2011 22:12:49 +0000 (15:12 -0700)
committerBrian Anderson <banderson@mozilla.com>
Tue, 11 Oct 2011 22:12:49 +0000 (15:12 -0700)
Issue #1022

src/comp/metadata/tydecode.rs

index 77ad79d2ae95d7109975d2726434b6f36c0a9e2b..6b9d3e96bf5f23e5b74b4aeb3ffbf8e95acbabfc 100644 (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' {