File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
compiler/rustc_smir/src/rustc_smir Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1095,7 +1095,18 @@ impl<'tcx> Stable<'tcx> for ty::Const<'tcx> {
1095
1095
}
1096
1096
ty:: ParamCt ( param) => stable_mir:: ty:: ConstantKind :: ParamCt ( opaque ( & param) ) ,
1097
1097
ty:: ErrorCt ( _) => unreachable ! ( ) ,
1098
- _ => unimplemented ! ( ) ,
1098
+ ty:: InferCt ( _) => unreachable ! ( ) ,
1099
+ ty:: BoundCt ( _, _) => unimplemented ! ( ) ,
1100
+ ty:: PlaceholderCt ( _) => unimplemented ! ( ) ,
1101
+ ty:: Unevaluated ( uv) => {
1102
+ stable_mir:: ty:: ConstantKind :: Unevaluated ( stable_mir:: ty:: UnevaluatedConst {
1103
+ ty : tables. intern_ty ( self . ty ( ) ) ,
1104
+ def : tables. const_def ( uv. def ) ,
1105
+ args : uv. args . stable ( tables) ,
1106
+ promoted : None ,
1107
+ } )
1108
+ }
1109
+ ty:: ExprCt ( _) => unimplemented ! ( ) ,
1099
1110
} ,
1100
1111
}
1101
1112
}
You can’t perform that action at this time.
0 commit comments