Add missing Clone/Debug impls to SMIR Trait related tys

This commit is contained in:
Santiago Pastorino 2023-08-16 13:10:52 -03:00
parent 1ec628d7fa
commit 66573b5781
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View File

@ -432,12 +432,14 @@ pub struct UnevaluatedConst {
pub promoted: Option<Promoted>,
}
#[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<TraitRef>;
#[derive(Clone, Debug)]
pub struct TraitRef {
pub def_id: TraitDef,
pub args: GenericArgs,