fix: Correctly support #[rustc_deprecated_safe_2024]

This commit is contained in:
Lukas Wirth 2024-08-12 10:56:59 +02:00
parent 56f63dfd8a
commit ded3e21fdd
8 changed files with 44 additions and 19 deletions

View file

@ -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?