Skip to content

Commit c80466c

Browse files
committed
Remove two dead functions.
1 parent 2d72528 commit c80466c

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

src/librustc/infer/mod.rs

-8
Original file line numberDiff line numberDiff line change
@@ -1291,14 +1291,6 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
12911291
value.visit_with(&mut r)
12921292
}
12931293

1294-
pub fn resolve_type_and_region_vars_if_possible<T>(&self, value: &T) -> T
1295-
where
1296-
T: TypeFoldable<'tcx>,
1297-
{
1298-
let mut r = resolve::OpportunisticTypeAndRegionResolver::new(self);
1299-
value.fold_with(&mut r)
1300-
}
1301-
13021294
pub fn fully_resolve<T: TypeFoldable<'tcx>>(&self, value: &T) -> FixupResult<T> {
13031295
/*!
13041296
* Attempts to resolve all type/region variables in

src/librustc/ty/fold.rs

-25
Original file line numberDiff line numberDiff line change
@@ -586,31 +586,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
586586
}).0
587587
}
588588

589-
/// Flattens multiple binding levels into one. So `for<'a> for<'b> Foo`
590-
/// becomes `for<'a,'b> Foo`.
591-
pub fn flatten_late_bound_regions<T>(self, bound2_value: &Binder<Binder<T>>)
592-
-> Binder<T>
593-
where T: TypeFoldable<'tcx>
594-
{
595-
let bound0_value = bound2_value.skip_binder().skip_binder();
596-
let value = self.fold_regions(bound0_value, &mut false, |region, current_depth| {
597-
match *region {
598-
ty::ReLateBound(debruijn, br) => {
599-
// We assume no regions bound *outside* of the
600-
// binders in `bound2_value` (nmatsakis added in
601-
// the course of this PR; seems like a reasonable
602-
// sanity check though).
603-
assert!(debruijn == current_depth);
604-
self.mk_region(ty::ReLateBound(current_depth, br))
605-
}
606-
_ => {
607-
region
608-
}
609-
}
610-
});
611-
Binder::bind(value)
612-
}
613-
614589
/// Returns a set of all late-bound regions that are constrained
615590
/// by `value`, meaning that if we instantiate those LBR with
616591
/// variables and equate `value` with something else, those

0 commit comments

Comments
 (0)