Add missing Clone/Debug impls to SMIR Trait related tys
This commit is contained in:
parent
1ec628d7fa
commit
66573b5781
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user