summaryrefslogtreecommitdiff
path: root/src/parse/root.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/parse/root.cpp
parente7282f3b1595936af4553a72beee6a296780a33e (diff)
downloadmrust-8257316b6954c2de7a69d8272d295d34b7c5a20c.tar.gz
HIR - Add variadic marking to functions, and propagate unsafe/const markings
Diffstat (limited to 'src/parse/root.cpp')
-rw-r--r--src/parse/root.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/root.cpp b/src/parse/root.cpp
index 6755c99a..29b3f28a 100644
--- a/src/parse/root.cpp
+++ b/src/parse/root.cpp
@@ -1027,7 +1027,7 @@ void Parse_Impl_Item(TokenStream& lex, AST::Impl& impl)
case TOK_RWORD_CONST:
{
GET_TOK(tok, lex);
- if( tok.type() != TOK_RWORD_FN && tok.type() != TOK_RWORD_UNSAFE )
+ if( tok.type() != TOK_RWORD_FN && tok.type() != TOK_RWORD_UNSAFE && !fn_is_unsafe )
{
CHECK_TOK(tok, TOK_IDENT);
auto name = mv$(tok.str());