Skip to content

Commit

Permalink
More efficient intersection handling
Browse files Browse the repository at this point in the history
  • Loading branch information
artemagvanian committed Jul 29, 2024
1 parent ba56f12 commit c5d25ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ impl<'a, 'tcx> MirVisitor for InstrumentationVisitor<'a, 'tcx> {
.points_to
.follow_from_place(rustc_internal::internal(self.tcx, place), self.current_def_id)
.intersection(&self.analysis_targets)
.count()
!= 0
.next()
.is_some()
{
// If we are mutating the place, initialize it.
if ptx.is_mutating() {
Expand Down

0 comments on commit c5d25ed

Please sign in to comment.