@@ -17,7 +17,6 @@ use crate::mir::interpret::EvalToValTreeResult;
1717use crate :: mir:: mono:: { MonoItem , NormalizationErrorInMono } ;
1818use crate :: query:: plumbing:: CyclePlaceholder ;
1919use crate :: traits:: solve;
20- use crate :: ty:: adjustment:: CoerceUnsizedInfo ;
2120use crate :: ty:: { self , Ty , TyCtxt } ;
2221use crate :: { mir, traits} ;
2322
@@ -162,10 +161,6 @@ impl Erasable for Result<Option<ty::Instance<'_>>, rustc_errors::ErrorGuaranteed
162161 [ u8 ; size_of :: < Result < Option < ty:: Instance < ' static > > , rustc_errors:: ErrorGuaranteed > > ( ) ] ;
163162}
164163
165- impl Erasable for Result < CoerceUnsizedInfo , rustc_errors:: ErrorGuaranteed > {
166- type Storage = [ u8 ; size_of :: < Result < CoerceUnsizedInfo , rustc_errors:: ErrorGuaranteed > > ( ) ] ;
167- }
168-
169164impl Erasable
170165 for Result < Option < ty:: EarlyBinder < ' _ , ty:: Const < ' _ > > > , rustc_errors:: ErrorGuaranteed >
171166{
@@ -196,10 +191,6 @@ impl Erasable for Result<mir::ConstAlloc<'_>, mir::interpret::ErrorHandled> {
196191 [ u8 ; size_of :: < Result < mir:: ConstAlloc < ' static > , mir:: interpret:: ErrorHandled > > ( ) ] ;
197192}
198193
199- impl Erasable for Result < mir:: ConstValue , mir:: interpret:: ErrorHandled > {
200- type Storage = [ u8 ; size_of :: < Result < mir:: ConstValue , mir:: interpret:: ErrorHandled > > ( ) ] ;
201- }
202-
203194impl Erasable for Option < ( mir:: ConstValue , Ty < ' _ > ) > {
204195 type Storage = [ u8 ; size_of :: < Option < ( mir:: ConstValue , Ty < ' _ > ) > > ( ) ] ;
205196}
@@ -343,6 +334,8 @@ impl_erasable_for_simple_types! {
343334 Result <( ) , rustc_errors:: ErrorGuaranteed >,
344335 Result <( ) , rustc_middle:: traits:: query:: NoSolution >,
345336 Result <rustc_middle:: traits:: EvaluationResult , rustc_middle:: traits:: OverflowError >,
337+ Result <rustc_middle:: ty:: adjustment:: CoerceUnsizedInfo , rustc_errors:: ErrorGuaranteed >,
338+ Result <mir:: ConstValue , mir:: interpret:: ErrorHandled >,
346339 rustc_abi:: ReprOptions ,
347340 rustc_ast:: expand:: allocator:: AllocatorKind ,
348341 rustc_hir:: DefaultBodyStability ,
0 commit comments