summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-29 13:51:13 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-29 13:51:13 +0800
commit8257316b6954c2de7a69d8272d295d34b7c5a20c (patch)
tree573af6736325698bef964c2b5006a4802e4f47f0 /src/hir/from_ast.cpp
parente7282f3b1595936af4553a72beee6a296780a33e (diff)
downloadmrust-8257316b6954c2de7a69d8272d295d34b7c5a20c.tar.gz
HIR - Add variadic marking to functions, and propagate unsafe/const markings
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() )
};