mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Introduce Ty::Alias
This commit is contained in:
parent
cda13d5461
commit
5d121cdb45
14 changed files with 109 additions and 98 deletions
|
@ -129,7 +129,7 @@ pub(crate) fn trait_solve_query(
|
|||
log::info!("trait_solve_query({})", goal.value.value.display(db));
|
||||
|
||||
if let Obligation::Projection(pred) = &goal.value.value {
|
||||
if let Ty::Bound(_) = &pred.projection_ty.parameters[0] {
|
||||
if let Ty::BoundVar(_) = &pred.projection_ty.parameters[0] {
|
||||
// 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