File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1136,7 +1136,9 @@ impl<'tcx> Stable<'tcx> for rustc_middle::mir::ConstantKind<'tcx> {
11361136 let const_val = tables. tcx . valtree_to_const_val ( ( c. ty ( ) , val) ) ;
11371137 stable_mir:: ty:: ConstantKind :: Allocated ( new_allocation ( self , const_val, tables) )
11381138 }
1139- _ => todo ! ( ) ,
1139+ ty:: ParamCt ( param) => stable_mir:: ty:: ConstantKind :: ParamCt ( opaque ( & param) ) ,
1140+ ty:: ErrorCt ( _) => unreachable ! ( ) ,
1141+ _ => unimplemented ! ( ) ,
11401142 } ,
11411143 ConstantKind :: Unevaluated ( unev_const, ty) => {
11421144 stable_mir:: ty:: ConstantKind :: Unevaluated ( stable_mir:: ty:: UnevaluatedConst {
Original file line number Diff line number Diff line change @@ -401,6 +401,7 @@ pub fn allocation_filter<'tcx>(
401401pub enum ConstantKind {
402402 Allocated ( Allocation ) ,
403403 Unevaluated ( UnevaluatedConst ) ,
404+ ParamCt ( Opaque ) ,
404405}
405406
406407#[ derive( Clone , Debug ) ]
You can’t perform that action at this time.
0 commit comments