Skip to content

Commit

Permalink
rustc_type_ir: derive Debug for UnevaluatedConst
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigorenkoPV committed Jul 26, 2024
1 parent 1b72392 commit 17f8361
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions compiler/rustc_type_ir/src/const_kind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl<I: Interner> fmt::Debug for ConstKind<I> {
}

/// An unevaluated (potentially generic) constant used in the type-system.
#[derive_where(Clone, Copy, Hash, PartialEq, Eq; I: Interner)]
#[derive_where(Clone, Copy, Debug, Hash, PartialEq, Eq; I: Interner)]
#[derive(TypeVisitable_Generic, TypeFoldable_Generic, Lift_Generic)]
#[cfg_attr(feature = "nightly", derive(TyDecodable, TyEncodable, HashStable_NoContext))]
pub struct UnevaluatedConst<I: Interner> {
Expand All @@ -74,15 +74,6 @@ impl<I: Interner> UnevaluatedConst<I> {
}
}

impl<I: Interner> fmt::Debug for UnevaluatedConst<I> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("UnevaluatedConst")
.field("def", &self.def)
.field("args", &self.args)
.finish()
}
}

rustc_index::newtype_index! {
/// A **`const`** **v**ariable **ID**.
#[encodable]
Expand Down

0 comments on commit 17f8361

Please sign in to comment.