Skip to content

Commit 8cd25e7

Browse files
committed
Remove tag from iterate_until_fixed_point().
The function only has one call site, so we don't need a tag argument.
1 parent 59e41ed commit 8cd25e7

File tree

1 file changed

+4
-4
lines changed
  • src/librustc/infer/lexical_region_resolve

1 file changed

+4
-4
lines changed

src/librustc/infer/lexical_region_resolve/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
304304
}
305305

306306
fn expansion(&self, var_values: &mut LexicalRegionResolutions<'tcx>) {
307-
self.iterate_until_fixed_point("Expansion", |constraint| {
307+
self.iterate_until_fixed_point(|constraint| {
308308
debug!("expansion: constraint={:?}", constraint);
309309
let (a_region, b_vid, b_data, retain) = match *constraint {
310310
Constraint::RegSubVar(a_region, b_vid) => {
@@ -866,7 +866,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
866866
}
867867
}
868868

869-
fn iterate_until_fixed_point<F>(&self, tag: &str, mut body: F)
869+
fn iterate_until_fixed_point<F>(&self, mut body: F)
870870
where
871871
F: FnMut(&Constraint<'tcx>) -> (bool, bool),
872872
{
@@ -876,7 +876,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
876876
while changed {
877877
changed = false;
878878
iteration += 1;
879-
debug!("---- {} Iteration {}{}", "#", tag, iteration);
879+
debug!("---- Expansion iteration {}", iteration);
880880
constraints.retain(|constraint| {
881881
let (edge_changed, retain) = body(constraint);
882882
if edge_changed {
@@ -886,7 +886,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
886886
retain
887887
});
888888
}
889-
debug!("---- {} Complete after {} iteration(s)", tag, iteration);
889+
debug!("---- Expansion complete after {} iteration(s)", iteration);
890890
}
891891

892892
fn bound_is_met(

0 commit comments

Comments
 (0)