summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp4
1 files changed, 2 insertions, 2 deletions
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() )
};