1
Fork 0

rustc_type_ir: Omit some struct fields from Debug output

This commit is contained in:
León Orell Valerian Liehr 2024-06-19 03:08:34 +02:00
parent 737e42308c
commit 2126c1d446
No known key found for this signature in database
GPG key ID: D17A07215F68E713
7 changed files with 23 additions and 22 deletions

View file

@ -361,6 +361,7 @@ impl<I: Interner> TypeVisitor<I> for ValidateBoundVars<I> {
#[cfg_attr(feature = "nightly", derive(TyEncodable, TyDecodable, HashStable_NoContext))]
pub struct EarlyBinder<I: Interner, T> {
value: T,
#[derivative(Debug = "ignore")]
_tcx: PhantomData<I>,
}

View file

@ -479,8 +479,8 @@ pub struct AliasTerm<I: Interner> {
/// aka. `interner.parent(def_id)`.
pub def_id: I::DefId,
/// This field exists to prevent the creation of `AliasTerm` without using
/// [AliasTerm::new].
/// This field exists to prevent the creation of `AliasTerm` without using [`AliasTerm::new`].
#[derivative(Debug = "ignore")]
_use_alias_term_new_instead: (),
}

View file

@ -452,8 +452,8 @@ pub struct AliasTy<I: Interner> {
/// aka. `interner.parent(def_id)`.
pub def_id: I::DefId,
/// This field exists to prevent the creation of `AliasTy` without using
/// [AliasTy::new].
/// This field exists to prevent the creation of `AliasTy` without using [`AliasTy::new`].
#[derivative(Debug = "ignore")]
pub(crate) _use_alias_ty_new_instead: (),
}