mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 07:04:22 +00:00
parent
00c81f8006
commit
66e2266d04
1 changed files with 1 additions and 0 deletions
|
@ -546,6 +546,7 @@ impl Ctx {
|
|||
let id: ModItem = match item {
|
||||
ast::ExternItem::FnDef(ast) => {
|
||||
let func = self.lower_function(&ast)?;
|
||||
self.data().functions[func.index].is_unsafe = true;
|
||||
func.into()
|
||||
}
|
||||
ast::ExternItem::StaticDef(ast) => {
|
||||
|
|
Loading…
Reference in a new issue