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 @@ -1136,7 +1136,9 @@ impl<'tcx> Stable<'tcx> for rustc_middle::mir::ConstantKind<'tcx> {
1136
1136
let const_val = tables. tcx . valtree_to_const_val ( ( c. ty ( ) , val) ) ;
1137
1137
stable_mir:: ty:: ConstantKind :: Allocated ( new_allocation ( self , const_val, tables) )
1138
1138
}
1139
- _ => todo ! ( ) ,
1139
+ ty:: ParamCt ( param) => stable_mir:: ty:: ConstantKind :: ParamCt ( opaque ( & param) ) ,
1140
+ ty:: ErrorCt ( _) => unreachable ! ( ) ,
1141
+ _ => unimplemented ! ( ) ,
1140
1142
} ,
1141
1143
ConstantKind :: Unevaluated ( unev_const, ty) => {
1142
1144
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>(
401
401
pub enum ConstantKind {
402
402
Allocated ( Allocation ) ,
403
403
Unevaluated ( UnevaluatedConst ) ,
404
+ ParamCt ( Opaque ) ,
404
405
}
405
406
406
407
#[ derive( Clone , Debug ) ]
You can’t perform that action at this time.
0 commit comments