Skip to content

Commit 17f8361

Browse files
committed
rustc_type_ir: derive Debug for UnevaluatedConst
1 parent 1b72392 commit 17f8361

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

compiler/rustc_type_ir/src/const_kind.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl<I: Interner> fmt::Debug for ConstKind<I> {
5959
}
6060

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

77-
impl<I: Interner> fmt::Debug for UnevaluatedConst<I> {
78-
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
79-
f.debug_struct("UnevaluatedConst")
80-
.field("def", &self.def)
81-
.field("args", &self.args)
82-
.finish()
83-
}
84-
}
85-
8677
rustc_index::newtype_index! {
8778
/// A **`const`** **v**ariable **ID**.
8879
#[encodable]

0 commit comments

Comments
 (0)