Box CanonicalUserTypeAnnotation::CanonicalUserType.

This shrinks `Ascription`, which shrinks `PatKind::AscribeUserType`,
which shrinks `Pat`.
This commit is contained in:
Nicholas Nethercote
2022-08-26 11:53:54 +10:00
parent 2c4c8eb1a3
commit a40124e01c
7 changed files with 18 additions and 18 deletions

View File

@@ -874,7 +874,7 @@ pub type CanonicalUserTypeAnnotations<'tcx> =
#[derive(Clone, Debug, TyEncodable, TyDecodable, HashStable, TypeFoldable, TypeVisitable, Lift)]
pub struct CanonicalUserTypeAnnotation<'tcx> {
pub user_ty: CanonicalUserType<'tcx>,
pub user_ty: Box<CanonicalUserType<'tcx>>,
pub span: Span,
pub inferred_ty: Ty<'tcx>,
}