Add some useful comments.

Describing some things that took me a long time to understand.
This commit is contained in:
Nicholas Nethercote
2024-11-18 15:43:13 +11:00
parent 0066acf753
commit 7e704afc2d
5 changed files with 24 additions and 12 deletions

View File

@@ -26,7 +26,9 @@ pub fn visit_results<'mir, 'tcx, A>(
}
}
/// A visitor over the results of an `Analysis`.
/// A visitor over the results of an `Analysis`. Use this when you want to inspect domain values in
/// many or all locations; use `ResultsCursor` if you want to inspect domain values only in certain
/// locations.
pub trait ResultsVisitor<'mir, 'tcx, A>
where
A: Analysis<'tcx>,