From 8257316b6954c2de7a69d8272d295d34b7c5a20c Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 29 Sep 2016 13:51:13 +0800 Subject: HIR - Add variadic marking to functions, and propagate unsafe/const markings --- src/hir/from_ast.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hir/from_ast.cpp') diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp index 4dd6fe92..d80c1ed1 100644 --- a/src/hir/from_ast.cpp +++ b/src/hir/from_ast.cpp @@ -987,9 +987,9 @@ namespace { // TODO: ABI and unsafety/constness return ::HIR::Function { receiver, - "rust", false, false, + f.abi(), f.is_unsafe(), f.is_const(), LowerHIR_GenericParams(f.params(), nullptr), // TODO: If this is a method, then it can add the Self: Sized bound - mv$(args), + mv$(args), f.is_variadic(), LowerHIR_Type( f.rettype() ), LowerHIR_Expr( f.code() ) }; -- cgit v1.2.3