diff --git a/crates/hir_ty/src/interner.rs b/crates/hir_ty/src/interner.rs index 7b41197477..8e77378abe 100644 --- a/crates/hir_ty/src/interner.rs +++ b/crates/hir_ty/src/interner.rs @@ -15,9 +15,15 @@ use std::{fmt, sync::Arc}; #[derive(Debug, Copy, Clone, Hash, PartialOrd, Ord, PartialEq, Eq)] pub struct Interner; -#[derive(PartialEq, Eq, Hash, Debug)] +#[derive(PartialEq, Eq, Hash)] pub struct InternedWrapper(T); +impl fmt::Debug for InternedWrapper { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + fmt::Debug::fmt(&self.0, f) + } +} + impl std::ops::Deref for InternedWrapper { type Target = T;