diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-10-10 16:06:24 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-10-10 16:23:08 +1100 |
| commit | 8cd25e72459a6ab25407e1fa30c4d6d42422ff3e (patch) | |
| tree | 0445cbb77ba8e8c915f55e006a5fa2ae8ec6d127 | |
| parent | 59e41edcc15ed07de604c61876ea091900f73649 (diff) | |
| download | rust-8cd25e72459a6ab25407e1fa30c4d6d42422ff3e.tar.gz rust-8cd25e72459a6ab25407e1fa30c4d6d42422ff3e.zip | |
Remove `tag` from `iterate_until_fixed_point()`.
The function only has one call site, so we don't need a tag argument.
| -rw-r--r-- | src/librustc/infer/lexical_region_resolve/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc/infer/lexical_region_resolve/mod.rs b/src/librustc/infer/lexical_region_resolve/mod.rs index 94ec3b981a4..6f55ade1e86 100644 --- a/src/librustc/infer/lexical_region_resolve/mod.rs +++ b/src/librustc/infer/lexical_region_resolve/mod.rs @@ -304,7 +304,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> { } fn expansion(&self, var_values: &mut LexicalRegionResolutions<'tcx>) { - self.iterate_until_fixed_point("Expansion", |constraint| { + self.iterate_until_fixed_point(|constraint| { debug!("expansion: constraint={:?}", constraint); let (a_region, b_vid, b_data, retain) = match *constraint { Constraint::RegSubVar(a_region, b_vid) => { @@ -866,7 +866,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> { } } - fn iterate_until_fixed_point<F>(&self, tag: &str, mut body: F) + fn iterate_until_fixed_point<F>(&self, mut body: F) where F: FnMut(&Constraint<'tcx>) -> (bool, bool), { @@ -876,7 +876,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> { while changed { changed = false; iteration += 1; - debug!("---- {} Iteration {}{}", "#", tag, iteration); + debug!("---- Expansion iteration {}", iteration); constraints.retain(|constraint| { let (edge_changed, retain) = body(constraint); if edge_changed { @@ -886,7 +886,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> { retain }); } - debug!("---- {} Complete after {} iteration(s)", tag, iteration); + debug!("---- Expansion complete after {} iteration(s)", iteration); } fn bound_is_met( |
