mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Determine function unsafety semantically
This commit is contained in:
parent
12f803d1e3
commit
5d8b4c40eb
12 changed files with 107 additions and 98 deletions
|
@ -237,7 +237,7 @@ fn detail(db: &dyn HirDatabase, func: hir::Function) -> String {
|
|||
if func.is_async(db) {
|
||||
format_to!(detail, "async ");
|
||||
}
|
||||
if func.is_unsafe(db) {
|
||||
if func.is_unsafe_to_call(db) {
|
||||
format_to!(detail, "unsafe ");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue