diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-06-25 10:04:47 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-07-05 08:19:43 +1000 |
| commit | 90419d36bd05718bce2b1a6eafaac8469a327bec (patch) | |
| tree | 926e1ae6b23becac456ef7b25722bbcf423ef27f | |
| parent | 24a9bcbb7cb0d8bdc11b8252a9c13f7562c7e4ca (diff) | |
| download | rust-90419d36bd05718bce2b1a6eafaac8469a327bec.tar.gz rust-90419d36bd05718bce2b1a6eafaac8469a327bec.zip | |
Remove `solve_nll_region_constraints` measurements from `-Ztime-passes` output.
Because it pollutes the output with hundreds or thousands of uninteresting lines for which the time duration is always(?) 0.000s.
| -rw-r--r-- | src/librustc_mir/borrow_check/nll/region_infer/mod.rs | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/librustc_mir/borrow_check/nll/region_infer/mod.rs b/src/librustc_mir/borrow_check/nll/region_infer/mod.rs index 4e609460c1f..40388722bca 100644 --- a/src/librustc_mir/borrow_check/nll/region_infer/mod.rs +++ b/src/librustc_mir/borrow_check/nll/region_infer/mod.rs @@ -20,7 +20,7 @@ use rustc::mir::{ ConstraintCategory, Local, Location, }; use rustc::ty::{self, subst::SubstsRef, RegionVid, Ty, TyCtxt, TypeFoldable}; -use rustc::util::common::{self, ErrorReported}; +use rustc::util::common::ErrorReported; use rustc_data_structures::binary_search_util; use rustc_data_structures::bit_set::BitSet; use rustc_data_structures::fx::{FxHashMap, FxHashSet}; @@ -469,22 +469,6 @@ impl<'tcx> RegionInferenceContext<'tcx> { mir_def_id: DefId, errors_buffer: &mut Vec<Diagnostic>, ) -> Option<ClosureRegionRequirements<'tcx>> { - common::time_ext( - infcx.tcx.sess.time_extended(), - Some(infcx.tcx.sess), - &format!("solve_nll_region_constraints({:?})", mir_def_id), - || self.solve_inner(infcx, body, upvars, mir_def_id, errors_buffer), - ) - } - - fn solve_inner( - &mut self, - infcx: &InferCtxt<'_, 'tcx>, - body: &Body<'tcx>, - upvars: &[Upvar], - mir_def_id: DefId, - errors_buffer: &mut Vec<Diagnostic>, - ) -> Option<ClosureRegionRequirements<'tcx>> { self.propagate_constraints(body); // If this is a closure, we can propagate unsatisfied |
