mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
InEnvironment::new takes a reference
This commit is contained in:
parent
d1b645d236
commit
be0084a0bc
5 changed files with 7 additions and 7 deletions
|
@ -1791,7 +1791,7 @@ impl Type {
|
|||
.build();
|
||||
|
||||
let goal = Canonical {
|
||||
value: hir_ty::InEnvironment::new(self.env.env.clone(), trait_ref.cast(&Interner)),
|
||||
value: hir_ty::InEnvironment::new(&self.env.env, trait_ref.cast(&Interner)),
|
||||
binders: CanonicalVarKinds::empty(&Interner),
|
||||
};
|
||||
|
||||
|
@ -1810,7 +1810,7 @@ impl Type {
|
|||
.build();
|
||||
let goal = hir_ty::make_canonical(
|
||||
InEnvironment::new(
|
||||
self.env.env.clone(),
|
||||
&self.env.env,
|
||||
AliasEq {
|
||||
alias: AliasTy::Projection(projection),
|
||||
ty: TyKind::BoundVar(BoundVar::new(DebruijnIndex::INNERMOST, 0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue