mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Fix inlay-hint tests being invalidated by minicore chanes
This commit is contained in:
parent
6ddccc9a6e
commit
d5faad1dae
3 changed files with 32 additions and 9 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue