Remove ParamEnvAnd::into_parts.

The fields are public, so this doesn't need a method, normal
deconstruction and/or field access is good enough.
This commit is contained in:
Nicholas Nethercote
2025-07-31 09:02:15 +10:00
parent c4e3cc0228
commit a949c47f0d
6 changed files with 8 additions and 14 deletions

View File

@@ -44,7 +44,7 @@ impl<'tcx> InferCtxt<'tcx> {
where
V: TypeFoldable<TyCtxt<'tcx>>,
{
let (param_env, value) = value.into_parts();
let ty::ParamEnvAnd { param_env, value } = value;
let canonical_param_env = self.tcx.canonical_param_env_cache.get_or_insert(
self.tcx,
param_env,