From 4b946cea35888bc82c624e9d79fade3077b40c3c Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Sun, 20 Mar 2011 20:18:19 -0700 Subject: Modify native_item_fn to handle trailing linkage names that differ from the item name (used in win32 build of std.dll) --- src/comp/front/ast.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/comp/front/ast.rs') diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs index ec93db55..a007e76b 100644 --- a/src/comp/front/ast.rs +++ b/src/comp/front/ast.rs @@ -367,7 +367,8 @@ tag item_ { type native_item = spanned[native_item_]; tag native_item_ { native_item_ty(ident, def_id); - native_item_fn(ident, fn_decl, vec[ty_param], def_id, ann); + native_item_fn(ident, option.t[str], + fn_decl, vec[ty_param], def_id, ann); } // TODO: Actually store something here. @@ -426,7 +427,7 @@ fn index_native_item(native_mod_index index, @native_item it) { case (ast.native_item_ty(?id, _)) { index.insert(id, ast.nmie_item(it)); } - case (ast.native_item_fn(?id, _, _, _, _)) { + case (ast.native_item_fn(?id, _, _, _, _, _)) { index.insert(id, ast.nmie_item(it)); } } -- cgit v1.2.3