Fix inlay-hint tests being invalidated by minicore chanes

This commit is contained in:
Lukas Wirth 2023-11-14 18:53:17 +01:00
parent 6ddccc9a6e
commit d5faad1dae
3 changed files with 32 additions and 9 deletions

View file

@ -3403,6 +3403,10 @@ impl Impl {
db.impl_data(self.id).is_negative
}
pub fn is_unsafe(self, db: &dyn HirDatabase) -> bool {
db.impl_data(self.id).is_unique()
}
pub fn module(self, db: &dyn HirDatabase) -> Module {
self.id.lookup(db.upcast()).container.into()
}