Skip to content

Commit

Permalink
Rollup merge of #114899 - spastorino:add-missing-debug, r=compiler-er…
Browse files Browse the repository at this point in the history
…rors

Add missing Clone/Debug impls to SMIR Trait related tys

r? `@compiler-errors`
  • Loading branch information
matthiaskrgr authored Aug 16, 2023
2 parents 82b92ad + 66573b5 commit f6c20ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/rustc_smir/src/stable_mir/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit f6c20ad

Please sign in to comment.