Skip to content

Commit 90419d3

Browse files
committed
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.
1 parent 24a9bcb commit 90419d3

File tree

1 file changed

+1
-17
lines changed
  • src/librustc_mir/borrow_check/nll/region_infer

1 file changed

+1
-17
lines changed

src/librustc_mir/borrow_check/nll/region_infer/mod.rs

+1-17
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use rustc::mir::{
2020
ConstraintCategory, Local, Location,
2121
};
2222
use rustc::ty::{self, subst::SubstsRef, RegionVid, Ty, TyCtxt, TypeFoldable};
23-
use rustc::util::common::{self, ErrorReported};
23+
use rustc::util::common::ErrorReported;
2424
use rustc_data_structures::binary_search_util;
2525
use rustc_data_structures::bit_set::BitSet;
2626
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
@@ -468,22 +468,6 @@ impl<'tcx> RegionInferenceContext<'tcx> {
468468
upvars: &[Upvar],
469469
mir_def_id: DefId,
470470
errors_buffer: &mut Vec<Diagnostic>,
471-
) -> Option<ClosureRegionRequirements<'tcx>> {
472-
common::time_ext(
473-
infcx.tcx.sess.time_extended(),
474-
Some(infcx.tcx.sess),
475-
&format!("solve_nll_region_constraints({:?})", mir_def_id),
476-
|| self.solve_inner(infcx, body, upvars, mir_def_id, errors_buffer),
477-
)
478-
}
479-
480-
fn solve_inner(
481-
&mut self,
482-
infcx: &InferCtxt<'_, 'tcx>,
483-
body: &Body<'tcx>,
484-
upvars: &[Upvar],
485-
mir_def_id: DefId,
486-
errors_buffer: &mut Vec<Diagnostic>,
487471
) -> Option<ClosureRegionRequirements<'tcx>> {
488472
self.propagate_constraints(body);
489473

0 commit comments

Comments
 (0)