]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/erase_regions.rs
Various minor/cosmetic improvements to code
[rust.git] / src / librustc / ty / erase_regions.rs
index f483b4c174ac3881ce1705d6c09fadba04d4122a..a361ad057c74a0e8c730c4641fd2205b9f694e1f 100644 (file)
 use ty::{self, Ty, TyCtxt};
 use ty::fold::{TypeFolder, TypeFoldable};
 
-pub(super) fn provide(providers: &mut ty::maps::Providers) {
-    *providers = ty::maps::Providers {
+pub(super) fn provide(providers: &mut ty::query::Providers<'_>) {
+    *providers = ty::query::Providers {
         erase_regions_ty,
         ..*providers
     };
 }
 
 fn erase_regions_ty<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, ty: Ty<'tcx>) -> Ty<'tcx> {
-    // NB: use `super_fold_with` here. If we used `fold_with`, it
+    // N.B., use `super_fold_with` here. If we used `fold_with`, it
     // could invoke the `erase_regions_ty` query recursively.
     ty.super_fold_with(&mut RegionEraserVisitor { tcx })
 }