@@ -217,7 +217,7 @@ pub enum TyKind<I: Interner> {
217217
218218 /// A placeholder for a type which could not be computed; this is
219219 /// propagated to avoid useless error messages.
220- Error ( I :: DelaySpanBugEmitted ) ,
220+ Error ( I :: ErrorGuaranteed ) ,
221221}
222222
223223impl < I : Interner > TyKind < I > {
@@ -626,7 +626,7 @@ impl<I: Interner> fmt::Debug for TyKind<I> {
626626// This is manually implemented because a derive would require `I: Encodable`
627627impl < I : Interner , E : TyEncoder > Encodable < E > for TyKind < I >
628628where
629- I :: DelaySpanBugEmitted : Encodable < E > ,
629+ I :: ErrorGuaranteed : Encodable < E > ,
630630 I :: AdtDef : Encodable < E > ,
631631 I :: SubstsRef : Encodable < E > ,
632632 I :: DefId : Encodable < E > ,
@@ -645,7 +645,6 @@ where
645645 I :: BoundTy : Encodable < E > ,
646646 I :: PlaceholderType : Encodable < E > ,
647647 I :: InferTy : Encodable < E > ,
648- I :: DelaySpanBugEmitted : Encodable < E > ,
649648 I :: PredicateKind : Encodable < E > ,
650649 I :: AllocId : Encodable < E > ,
651650{
@@ -744,7 +743,7 @@ where
744743// This is manually implemented because a derive would require `I: Decodable`
745744impl < I : Interner , D : TyDecoder < I = I > > Decodable < D > for TyKind < I >
746745where
747- I :: DelaySpanBugEmitted : Decodable < D > ,
746+ I :: ErrorGuaranteed : Decodable < D > ,
748747 I :: AdtDef : Decodable < D > ,
749748 I :: SubstsRef : Decodable < D > ,
750749 I :: DefId : Decodable < D > ,
@@ -763,7 +762,6 @@ where
763762 I :: BoundTy : Decodable < D > ,
764763 I :: PlaceholderType : Decodable < D > ,
765764 I :: InferTy : Decodable < D > ,
766- I :: DelaySpanBugEmitted : Decodable < D > ,
767765 I :: PredicateKind : Decodable < D > ,
768766 I :: AllocId : Decodable < D > ,
769767{
@@ -829,7 +827,7 @@ where
829827 I :: ParamTy : HashStable < CTX > ,
830828 I :: PlaceholderType : HashStable < CTX > ,
831829 I :: InferTy : HashStable < CTX > ,
832- I :: DelaySpanBugEmitted : HashStable < CTX > ,
830+ I :: ErrorGuaranteed : HashStable < CTX > ,
833831{
834832 #[ inline]
835833 fn hash_stable (
0 commit comments