diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-08 19:23:10 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-08 19:23:10 +0800 |
commit | d1353b232384e1ec40b469ab025b5ec0fb961a79 (patch) | |
tree | adc137f7f8dccd5ec4fbee9ef04b79c1c36457ed | |
parent | 1f4186162c74e9452683298ad7058ed7cc4c1b46 (diff) | |
download | mrust-d1353b232384e1ec40b469ab025b5ec0fb961a79.tar.gz |
Parse - Handle `unsafe extern fn` in impl blocks
-rw-r--r-- | src/parse/root.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/root.cpp b/src/parse/root.cpp index 29b3f28a..ce3c9443 100644 --- a/src/parse/root.cpp +++ b/src/parse/root.cpp @@ -1049,7 +1049,7 @@ void Parse_Impl_Item(TokenStream& lex, AST::Impl& impl) }
fn_is_const = true;
}
- if( 0 )
+ if( tok.type() == TOK_RWORD_EXTERN )
// FALL
case TOK_RWORD_EXTERN:
{
|