drive-by: Fix a comment in TyCtxt::fold_regions and remove an unused method
This commit is contained in:
parent
9f80c75703
commit
239ec6cb11
1 changed files with 1 additions and 14 deletions
|
@ -51,9 +51,7 @@ where
|
|||
// Region folder
|
||||
|
||||
impl<'tcx> TyCtxt<'tcx> {
|
||||
/// Folds the escaping and free regions in `value` using `f`, and
|
||||
/// sets `skipped_regions` to true if any late-bound region was found
|
||||
/// and skipped.
|
||||
/// Folds the escaping and free regions in `value` using `f`.
|
||||
pub fn fold_regions<T>(
|
||||
self,
|
||||
value: T,
|
||||
|
@ -64,17 +62,6 @@ impl<'tcx> TyCtxt<'tcx> {
|
|||
{
|
||||
value.fold_with(&mut RegionFolder::new(self, &mut f))
|
||||
}
|
||||
|
||||
pub fn super_fold_regions<T>(
|
||||
self,
|
||||
value: T,
|
||||
mut f: impl FnMut(ty::Region<'tcx>, ty::DebruijnIndex) -> ty::Region<'tcx>,
|
||||
) -> T
|
||||
where
|
||||
T: TypeSuperFoldable<TyCtxt<'tcx>>,
|
||||
{
|
||||
value.super_fold_with(&mut RegionFolder::new(self, &mut f))
|
||||
}
|
||||
}
|
||||
|
||||
/// Folds over the substructure of a type, visiting its component
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue