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.
This commit is contained in:
parent
24a9bcbb7c
commit
90419d36bd
1 changed files with 1 additions and 17 deletions
|
@ -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};
|
||||
|
@ -468,22 +468,6 @@ impl<'tcx> RegionInferenceContext<'tcx> {
|
|||
upvars: &[Upvar],
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue