mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Test for a Salsa bug
This commit is contained in:
parent
0d40ff5e62
commit
0623bb4d71
3 changed files with 124 additions and 0 deletions
|
@ -106,6 +106,10 @@ impl ProjectionTy {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn self_type_parameter(&self) -> &Ty {
|
||||
&self.substitution[0]
|
||||
}
|
||||
|
||||
fn trait_(&self, db: &dyn HirDatabase) -> TraitId {
|
||||
match from_assoc_type_id(self.associated_ty_id).lookup(db.upcast()).container {
|
||||
AssocContainerId::TraitId(it) => it,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue