Skip to content

Commit 66573b5

Browse files
committed
Add missing Clone/Debug impls to SMIR Trait related tys
1 parent 1ec628d commit 66573b5

File tree

1 file changed

+3
-0
lines changed
  • compiler/rustc_smir/src/stable_mir

1 file changed

+3
-0
lines changed

compiler/rustc_smir/src/stable_mir/ty.rs

+3
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,14 @@ pub struct UnevaluatedConst {
432432
pub promoted: Option<Promoted>,
433433
}
434434

435+
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
435436
pub enum TraitSpecializationKind {
436437
None,
437438
Marker,
438439
AlwaysApplicable,
439440
}
440441

442+
#[derive(Clone, Debug)]
441443
pub struct TraitDecl {
442444
pub def_id: TraitDef,
443445
pub unsafety: Safety,
@@ -454,6 +456,7 @@ pub struct TraitDecl {
454456

455457
pub type ImplTrait = EarlyBinder<TraitRef>;
456458

459+
#[derive(Clone, Debug)]
457460
pub struct TraitRef {
458461
pub def_id: TraitDef,
459462
pub args: GenericArgs,

0 commit comments

Comments
 (0)