1
Fork 0

Pass DepContext and QueryContext by value when practical

This commit is contained in:
John Kåre Alsaker 2023-02-14 00:18:46 +01:00
parent 9bb6e60d1f
commit b3a4fe7d4e
4 changed files with 26 additions and 26 deletions

View file

@ -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]