Skip to content

Commit

Permalink
Downgrade a &mut self to &self.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Oct 8, 2024
1 parent 8b05df4 commit 4df21f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_infer/src/infer/region_constraints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ impl<'tcx> RegionConstraintCollector<'_, 'tcx> {
&self.storage.data
}

pub(super) fn start_snapshot(&mut self) -> RegionSnapshot {
pub(super) fn start_snapshot(&self) -> RegionSnapshot {
debug!("RegionConstraintCollector: start_snapshot");
RegionSnapshot { any_unifications: self.storage.any_unifications }
}
Expand Down

0 comments on commit 4df21f2

Please sign in to comment.