diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-02-14 00:18:46 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-02-14 17:21:18 +0100 |
| commit | b3a4fe7d4ebf58cccd43d536992cefbee5dc2988 (patch) | |
| tree | 4556b3722d825285242a93c20cbf3de70a62b913 /compiler/rustc_middle | |
| parent | 9bb6e60d1f1360234aae90c97964c0fa5524f141 (diff) | |
Pass `DepContext` and `QueryContext` by value when practical
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/dep_graph/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/dep_graph/mod.rs b/compiler/rustc_middle/src/dep_graph/mod.rs index 2e82efba192..84510fe218c 100644 --- a/compiler/rustc_middle/src/dep_graph/mod.rs +++ b/compiler/rustc_middle/src/dep_graph/mod.rs @@ -74,8 +74,8 @@ impl<'tcx> DepContext for TyCtxt<'tcx> { type DepKind = DepKind; #[inline] - fn with_stable_hashing_context<R>(&self, f: impl FnOnce(StableHashingContext<'_>) -> R) -> R { - TyCtxt::with_stable_hashing_context(*self, f) + fn with_stable_hashing_context<R>(self, f: impl FnOnce(StableHashingContext<'_>) -> R) -> R { + TyCtxt::with_stable_hashing_context(self, f) } #[inline] |
