about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-02-21 10:23:36 +0100
committerlcnr <rust@lcnr.de>2022-02-21 11:02:52 +0100
commit239f33ea5bd5aa7b3af61f2e1226949350f2b428 (patch)
tree868f76dd94eb127a2f87cddd2fa5a8fffd24c4e1
parent026d8ce7f5f66ba6fbb8aaf4babb533e95ee3efd (diff)
add comment
-rw-r--r--compiler/rustc_infer/src/infer/region_constraints/leak_check.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_infer/src/infer/region_constraints/leak_check.rs b/compiler/rustc_infer/src/infer/region_constraints/leak_check.rs
index 36d18aebfe2..817aaf10053 100644
--- a/compiler/rustc_infer/src/infer/region_constraints/leak_check.rs
+++ b/compiler/rustc_infer/src/infer/region_constraints/leak_check.rs
@@ -100,6 +100,7 @@ impl<'tcx> RegionConstraintCollector<'_, 'tcx> {
 struct LeakCheck<'me, 'tcx> {
     tcx: TyCtxt<'tcx>,
     universe_at_start_of_snapshot: ty::UniverseIndex,
+    /// Only used when reporting region errors.
     overly_polymorphic: bool,
     mini_graph: &'me MiniGraph<'tcx>,
     rcc: &'me RegionConstraintCollector<'me, 'tcx>,