mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +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 {
|
let id: ModItem = match item {
|
||||||
ast::ExternItem::FnDef(ast) => {
|
ast::ExternItem::FnDef(ast) => {
|
||||||
let func = self.lower_function(&ast)?;
|
let func = self.lower_function(&ast)?;
|
||||||
|
self.data().functions[func.index].is_unsafe = true;
|
||||||
func.into()
|
func.into()
|
||||||
}
|
}
|
||||||
ast::ExternItem::StaticDef(ast) => {
|
ast::ExternItem::StaticDef(ast) => {
|
||||||
|
|
Loading…
Reference in a new issue