From 66573b578130bca54eea2ec6fc853e05be974634 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Wed, 16 Aug 2023 13:10:52 -0300 Subject: [PATCH] Add missing Clone/Debug impls to SMIR Trait related tys --- compiler/rustc_smir/src/stable_mir/ty.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/rustc_smir/src/stable_mir/ty.rs b/compiler/rustc_smir/src/stable_mir/ty.rs index f8ff6741208f1..7a6601f09da43 100644 --- a/compiler/rustc_smir/src/stable_mir/ty.rs +++ b/compiler/rustc_smir/src/stable_mir/ty.rs @@ -432,12 +432,14 @@ pub struct UnevaluatedConst { pub promoted: Option, } +#[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum TraitSpecializationKind { None, Marker, AlwaysApplicable, } +#[derive(Clone, Debug)] pub struct TraitDecl { pub def_id: TraitDef, pub unsafety: Safety, @@ -454,6 +456,7 @@ pub struct TraitDecl { pub type ImplTrait = EarlyBinder; +#[derive(Clone, Debug)] pub struct TraitRef { pub def_id: TraitDef, pub args: GenericArgs,