s/const_effect/host_effect
This commit is contained in:
parent
f1bf874fb1
commit
7467c3a45c
5 changed files with 10 additions and 9 deletions
|
@ -500,7 +500,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
self.tcx,
|
||||
eq_def_id,
|
||||
sym::eq,
|
||||
self.tcx.with_opt_const_effect_param(self.def_id, eq_def_id, [ty, ty]),
|
||||
self.tcx.with_opt_host_effect_param(self.def_id, eq_def_id, [ty, ty]),
|
||||
);
|
||||
|
||||
let bool_ty = self.tcx.types.bool;
|
||||
|
|
|
@ -272,7 +272,7 @@ impl<'tcx> ConstToPat<'tcx> {
|
|||
ty::TraitRef::new(
|
||||
tcx,
|
||||
partial_eq_trait_id,
|
||||
tcx.with_opt_const_effect_param(
|
||||
tcx.with_opt_host_effect_param(
|
||||
tcx.hir().enclosing_body_owner(self.id),
|
||||
partial_eq_trait_id,
|
||||
[ty, ty],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue