mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Pass interner to ProjectionTy::self_type_parameter
This commit is contained in:
parent
fab1c06646
commit
aefcbf2758
4 changed files with 7 additions and 7 deletions
|
@ -89,7 +89,7 @@ pub(crate) fn trait_solve_query(
|
|||
..
|
||||
})) = &goal.value.goal
|
||||
{
|
||||
if let TyKind::BoundVar(_) = projection_ty.self_type_parameter().kind(&Interner) {
|
||||
if let TyKind::BoundVar(_) = projection_ty.self_type_parameter(&Interner).kind(&Interner) {
|
||||
// Hack: don't ask Chalk to normalize with an unknown self type, it'll say that's impossible
|
||||
return Some(Solution::Ambig(Guidance::Unknown));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue