1
Fork 0

Rollup merge of #114899 - spastorino:add-missing-debug, r=compiler-errors

Add missing Clone/Debug impls to SMIR Trait related tys

r? `@compiler-errors`
This commit is contained in:
Matthias Krüger 2023-08-16 20:10:38 +02:00 committed by GitHub
commit f6c20ad131
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -432,12 +432,14 @@ pub struct UnevaluatedConst {
pub promoted: Option<Promoted>, pub promoted: Option<Promoted>,
} }
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TraitSpecializationKind { pub enum TraitSpecializationKind {
None, None,
Marker, Marker,
AlwaysApplicable, AlwaysApplicable,
} }
#[derive(Clone, Debug)]
pub struct TraitDecl { pub struct TraitDecl {
pub def_id: TraitDef, pub def_id: TraitDef,
pub unsafety: Safety, pub unsafety: Safety,
@ -454,6 +456,7 @@ pub struct TraitDecl {
pub type ImplTrait = EarlyBinder<TraitRef>; pub type ImplTrait = EarlyBinder<TraitRef>;
#[derive(Clone, Debug)]
pub struct TraitRef { pub struct TraitRef {
pub def_id: TraitDef, pub def_id: TraitDef,
pub args: GenericArgs, pub args: GenericArgs,