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 @@ -1165,7 +1165,9 @@ impl<'tcx> Stable<'tcx> for rustc_middle::mir::ConstantKind<'tcx> {
11651165 let const_val = tables. tcx . valtree_to_const_val ( ( c. ty ( ) , val) ) ;
11661166 stable_mir:: ty:: ConstantKind :: Allocated ( new_allocation ( self , const_val, tables) )
11671167 }
1168- _ => todo ! ( ) ,
1168+ ty:: ParamCt ( param) => stable_mir:: ty:: ConstantKind :: ParamCt ( opaque ( & param) ) ,
1169+ ty:: ErrorCt ( _) => unreachable ! ( ) ,
1170+ _ => unimplemented ! ( ) ,
11691171 } ,
11701172 ConstantKind :: Unevaluated ( unev_const, ty) => {
11711173 stable_mir:: ty:: ConstantKind :: Unevaluated ( stable_mir:: ty:: UnevaluatedConst {
Original file line number Diff line number Diff line change @@ -417,6 +417,7 @@ pub fn allocation_filter<'tcx>(
417417pub enum ConstantKind {
418418 Allocated ( Allocation ) ,
419419 Unevaluated ( UnevaluatedConst ) ,
420+ ParamCt ( Opaque ) ,
420421}
421422
422423#[ derive( Clone , Debug ) ]
You can’t perform that action at this time.
0 commit comments