about summary refs log tree commit diff
path: root/compiler/rustc_public
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-09-02 17:08:58 +0200
committerGitHub <noreply@github.com>2025-09-02 17:08:58 +0200
commit07f7d86f36fe3a12381a9ca772a4705eaf0abc80 (patch)
tree2d99c82d3a4f04a34e740cd04137217b7d5924eb /compiler/rustc_public
parent8408bca60502a2364b6104192089d27b2b6223fd (diff)
parent6fc0cf428885a4939fc3b6f60f638ce09e48339f (diff)
downloadrust-07f7d86f36fe3a12381a9ca772a4705eaf0abc80.tar.gz
rust-07f7d86f36fe3a12381a9ca772a4705eaf0abc80.zip
Rollup merge of #146102 - fmease:rm-dead-eff-code-iii, r=fee1-dead
Remove dead code stemming from an old effects desugaring

CC https://github.com/rust-lang/rust/pull/132374, https://github.com/rust-lang/rust/pull/133443.

r? fee1-dead
Diffstat (limited to 'compiler/rustc_public')
-rw-r--r--compiler/rustc_public/src/unstable/convert/stable/ty.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_public/src/unstable/convert/stable/ty.rs b/compiler/rustc_public/src/unstable/convert/stable/ty.rs
index 5a661072bc7..207038db40d 100644
--- a/compiler/rustc_public/src/unstable/convert/stable/ty.rs
+++ b/compiler/rustc_public/src/unstable/convert/stable/ty.rs
@@ -656,13 +656,13 @@ impl<'tcx> Stable<'tcx> for rustc_middle::ty::GenericParamDefKind {
 
     fn stable(&self, _: &mut Tables<'_, BridgeTys>, _: &CompilerCtxt<'_, BridgeTys>) -> Self::T {
         use crate::ty::GenericParamDefKind;
-        match self {
+        match *self {
             ty::GenericParamDefKind::Lifetime => GenericParamDefKind::Lifetime,
             ty::GenericParamDefKind::Type { has_default, synthetic } => {
-                GenericParamDefKind::Type { has_default: *has_default, synthetic: *synthetic }
+                GenericParamDefKind::Type { has_default, synthetic }
             }
-            ty::GenericParamDefKind::Const { has_default, synthetic: _ } => {
-                GenericParamDefKind::Const { has_default: *has_default }
+            ty::GenericParamDefKind::Const { has_default } => {
+                GenericParamDefKind::Const { has_default }
             }
         }
     }