mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Being Ty::InferenceVar closes to chalk equivalent
This commit is contained in:
parent
4e5c496199
commit
11a1f13cd1
11 changed files with 172 additions and 152 deletions
|
@ -33,7 +33,7 @@ use hir_ty::{
|
|||
traits::{FnTrait, Solution, SolutionVariables},
|
||||
BoundVar, CallableDefId, CallableSig, Canonical, DebruijnIndex, GenericPredicate,
|
||||
InEnvironment, Obligation, ProjectionPredicate, ProjectionTy, Scalar, Substs, TraitEnvironment,
|
||||
Ty, TyDefId, TyKind,
|
||||
Ty, TyDefId, TyVariableKind,
|
||||
};
|
||||
use rustc_hash::FxHashSet;
|
||||
use stdx::{format_to, impl_from};
|
||||
|
@ -1655,7 +1655,7 @@ impl Type {
|
|||
self.ty.environment.clone(),
|
||||
Obligation::Projection(predicate),
|
||||
),
|
||||
kinds: Arc::new([TyKind::General]),
|
||||
kinds: Arc::new([TyVariableKind::General]),
|
||||
};
|
||||
|
||||
match db.trait_solve(self.krate, goal)? {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue