From 741ef41e41e61ae107145d03ffcb263ffec5ca1f Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 7 Dec 2017 04:30:39 -0500 Subject: use Rc to store nonlexical_regioncx in Borrows --- src/librustc_mir/dataflow/impls/borrows.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/librustc_mir/dataflow/impls') diff --git a/src/librustc_mir/dataflow/impls/borrows.rs b/src/librustc_mir/dataflow/impls/borrows.rs index 2504aa5ff37..25e4b30da80 100644 --- a/src/librustc_mir/dataflow/impls/borrows.rs +++ b/src/librustc_mir/dataflow/impls/borrows.rs @@ -66,7 +66,7 @@ pub struct Borrows<'a, 'gcx: 'tcx, 'tcx: 'a> { region_map: FxHashMap, FxHashSet>, local_map: FxHashMap>, region_span_map: FxHashMap, - nonlexical_regioncx: Option>, + nonlexical_regioncx: Option>>, } // Two-phase borrows actually requires two flow analyses; they need @@ -147,7 +147,7 @@ impl ReserveOrActivateIndex { impl<'a, 'gcx, 'tcx> Borrows<'a, 'gcx, 'tcx> { pub fn new(tcx: TyCtxt<'a, 'gcx, 'tcx>, mir: &'a Mir<'tcx>, - nonlexical_regioncx: Option>, + nonlexical_regioncx: Option>>, def_id: DefId, body_id: Option) -> Self { -- cgit 1.4.1-3-g733a5