diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-07-31 09:02:15 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-07-31 15:17:20 +1000 |
| commit | a949c47f0d3c0fb0b444c25cb2eb3323fcc845e6 (patch) | |
| tree | ce7313c9fb900711cf9d5f43961b5281eb8bdd5b /compiler/rustc_infer/src | |
| parent | c4e3cc02281d898a6c9424f1bcebfb5ca38ca37f (diff) | |
| download | rust-a949c47f0d3c0fb0b444c25cb2eb3323fcc845e6.tar.gz rust-a949c47f0d3c0fb0b444c25cb2eb3323fcc845e6.zip | |
Remove `ParamEnvAnd::into_parts`.
The fields are public, so this doesn't need a method, normal deconstruction and/or field access is good enough.
Diffstat (limited to 'compiler/rustc_infer/src')
| -rw-r--r-- | compiler/rustc_infer/src/infer/canonical/canonicalizer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/canonical/canonicalizer.rs b/compiler/rustc_infer/src/infer/canonical/canonicalizer.rs index 060447ba720..db37669d85b 100644 --- a/compiler/rustc_infer/src/infer/canonical/canonicalizer.rs +++ b/compiler/rustc_infer/src/infer/canonical/canonicalizer.rs @@ -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, |
