]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/fold.rs
rustc: use DefId instead of CodeExtent for FreeRegion's scope.
[rust.git] / src / librustc / ty / fold.rs
index 21ccf6f987b8952307460ee07a4db31d310e9785..fc20b1bee4ef5b38567e5b280a8dc9fb4fd609e9 100644 (file)
@@ -39,7 +39,7 @@
 //! These methods return true to indicate that the visitor has found what it is looking for
 //! and does not need to visit anything else.
 
-use middle::region;
+use hir::def_id::DefId;
 use ty::subst::Substs;
 use ty::adjustment;
 use ty::{self, Binder, Ty, TyCtxt, TypeFlags};
@@ -330,7 +330,7 @@ pub fn replace_late_bound_regions<T,F>(self,
     /// Replace any late-bound regions bound in `value` with free variants attached to scope-id
     /// `scope_id`.
     pub fn liberate_late_bound_regions<T>(self,
-        all_outlive_scope: Option<region::CodeExtent<'tcx>>,
+        all_outlive_scope: DefId,
         value: &Binder<T>)
         -> T
         where T : TypeFoldable<'tcx>