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_middle/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_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/ty/mod.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index abbb3f2f59a..a8992b88acd 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -1011,12 +1011,6 @@ pub struct ParamEnvAnd<'tcx, T> { pub value: T, } -impl<'tcx, T> ParamEnvAnd<'tcx, T> { - pub fn into_parts(self) -> (ParamEnv<'tcx>, T) { - (self.param_env, self.value) - } -} - /// The environment in which to do trait solving. /// /// Most of the time you only need to care about the `ParamEnv` |
