mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
fix: Correctly support #[rustc_deprecated_safe_2024]
This commit is contained in:
parent
56f63dfd8a
commit
ded3e21fdd
8 changed files with 44 additions and 19 deletions
|
@ -2189,11 +2189,11 @@ impl Function {
|
|||
}
|
||||
|
||||
pub fn is_const(self, db: &dyn HirDatabase) -> bool {
|
||||
db.function_data(self.id).has_const_kw()
|
||||
db.function_data(self.id).is_const()
|
||||
}
|
||||
|
||||
pub fn is_async(self, db: &dyn HirDatabase) -> bool {
|
||||
db.function_data(self.id).has_async_kw()
|
||||
db.function_data(self.id).is_async()
|
||||
}
|
||||
|
||||
/// Does this function have `#[test]` attribute?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue