mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Introduce FunctionQualifier for hir::FunctionData
This commit is contained in:
parent
b9c172a977
commit
2bb8956a10
6 changed files with 45 additions and 17 deletions
|
@ -844,7 +844,7 @@ impl Function {
|
|||
}
|
||||
|
||||
pub fn is_unsafe(self, db: &dyn HirDatabase) -> bool {
|
||||
db.function_data(self.id).is_unsafe
|
||||
db.function_data(self.id).qualifier.is_unsafe
|
||||
}
|
||||
|
||||
pub fn diagnostics(self, db: &dyn HirDatabase, sink: &mut DiagnosticSink) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue