fold_region: remove unused parameter
This commit is contained in:
parent
4dbf9ba0ab
commit
70497d9d10
12 changed files with 18 additions and 24 deletions
|
@ -79,7 +79,7 @@ pub fn find_param_with_region<'tcx>(
|
|||
// May return None; sometimes the tables are not yet populated.
|
||||
let ty = fn_sig.inputs()[index];
|
||||
let mut found_anon_region = false;
|
||||
let new_param_ty = tcx.fold_regions(ty, &mut false, |r, _| {
|
||||
let new_param_ty = tcx.fold_regions(ty, |r, _| {
|
||||
if r == anon_region {
|
||||
found_anon_region = true;
|
||||
replace_region
|
||||
|
|
|
@ -868,7 +868,7 @@ impl<'tcx> LexicalRegionResolutions<'tcx> {
|
|||
where
|
||||
T: TypeFoldable<'tcx>,
|
||||
{
|
||||
tcx.fold_regions(value, &mut false, |r, _db| match *r {
|
||||
tcx.fold_regions(value, |r, _db| match *r {
|
||||
ty::ReVar(rid) => self.resolve_var(rid),
|
||||
_ => r,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue