compiler: fold by value
This commit is contained in:
parent
3ec6720bf1
commit
2bf93bd852
140 changed files with 679 additions and 699 deletions
|
@ -546,7 +546,7 @@ impl<'a, 'tcx> MirNeighborCollector<'a, 'tcx> {
|
|||
self.instance.subst_mir_and_normalize_erasing_regions(
|
||||
self.tcx,
|
||||
ty::ParamEnv::reveal_all(),
|
||||
&value,
|
||||
value,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -1118,7 +1118,7 @@ impl RootCollector<'_, 'v> {
|
|||
// late-bound regions, since late-bound
|
||||
// regions must appear in the argument
|
||||
// listing.
|
||||
let main_ret_ty = self.tcx.erase_regions(&main_ret_ty.no_bound_vars().unwrap());
|
||||
let main_ret_ty = self.tcx.erase_regions(main_ret_ty.no_bound_vars().unwrap());
|
||||
|
||||
let start_instance = Instance::resolve(
|
||||
self.tcx,
|
||||
|
|
|
@ -304,7 +304,7 @@ fn characteristic_def_id_of_mono_item<'tcx>(
|
|||
let impl_self_ty = tcx.subst_and_normalize_erasing_regions(
|
||||
instance.substs,
|
||||
ty::ParamEnv::reveal_all(),
|
||||
&tcx.type_of(impl_def_id),
|
||||
tcx.type_of(impl_def_id),
|
||||
);
|
||||
if let Some(def_id) = characteristic_def_id_of_type(impl_self_ty) {
|
||||
return Some(def_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue