rustc_type_ir: Omit some struct fields from Debug output
This commit is contained in:
parent
737e42308c
commit
2126c1d446
7 changed files with 23 additions and 22 deletions
|
@ -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>,
|
||||
}
|
||||
|
||||
|
|
|
@ -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: (),
|
||||
}
|
||||
|
||||
|
|
|
@ -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: (),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue