File tree 2 files changed +4
-1
lines changed
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> {
1165
1165
let const_val = tables. tcx . valtree_to_const_val ( ( c. ty ( ) , val) ) ;
1166
1166
stable_mir:: ty:: ConstantKind :: Allocated ( new_allocation ( self , const_val, tables) )
1167
1167
}
1168
- _ => todo ! ( ) ,
1168
+ ty:: ParamCt ( param) => stable_mir:: ty:: ConstantKind :: ParamCt ( opaque ( & param) ) ,
1169
+ ty:: ErrorCt ( _) => unreachable ! ( ) ,
1170
+ _ => unimplemented ! ( ) ,
1169
1171
} ,
1170
1172
ConstantKind :: Unevaluated ( unev_const, ty) => {
1171
1173
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>(
417
417
pub enum ConstantKind {
418
418
Allocated ( Allocation ) ,
419
419
Unevaluated ( UnevaluatedConst ) ,
420
+ ParamCt ( Opaque ) ,
420
421
}
421
422
422
423
#[ derive( Clone , Debug ) ]
You can’t perform that action at this time.
0 commit comments