mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Implement promotoe_local_to_const assist
This commit is contained in:
parent
f87debcf87
commit
06286ee90b
6 changed files with 280 additions and 11 deletions
|
@ -1307,6 +1307,10 @@ impl Function {
|
|||
db.function_data(self.id).is_unsafe()
|
||||
}
|
||||
|
||||
pub fn is_const(self, db: &dyn HirDatabase) -> bool {
|
||||
db.function_data(self.id).is_const()
|
||||
}
|
||||
|
||||
pub fn is_async(self, db: &dyn HirDatabase) -> bool {
|
||||
db.function_data(self.id).is_async()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue