diff options
-rw-r--r-- | crates/ra_hir_def/src/item_tree/lower.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_hir_def/src/item_tree/lower.rs b/crates/ra_hir_def/src/item_tree/lower.rs index eaa10d999..0b1509e13 100644 --- a/crates/ra_hir_def/src/item_tree/lower.rs +++ b/crates/ra_hir_def/src/item_tree/lower.rs | |||
@@ -546,6 +546,7 @@ impl Ctx { | |||
546 | let id: ModItem = match item { | 546 | let id: ModItem = match item { |
547 | ast::ExternItem::FnDef(ast) => { | 547 | ast::ExternItem::FnDef(ast) => { |
548 | let func = self.lower_function(&ast)?; | 548 | let func = self.lower_function(&ast)?; |
549 | self.data().functions[func.index].is_unsafe = true; | ||
549 | func.into() | 550 | func.into() |
550 | } | 551 | } |
551 | ast::ExternItem::StaticDef(ast) => { | 552 | ast::ExternItem::StaticDef(ast) => { |