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>,
}
#[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,