File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,9 @@ impl<'tcx> Stable<'tcx> for mir::Rvalue<'tcx> {
156
156
ops. 0 . stable ( tables) ,
157
157
ops. 1 . stable ( tables) ,
158
158
) ,
159
- NullaryOp ( _, _) => todo ! ( ) ,
159
+ NullaryOp ( null_op, ty) => {
160
+ stable_mir:: mir:: Rvalue :: NullaryOp ( null_op. stable ( tables) , tables. intern_ty ( * ty) )
161
+ }
160
162
UnaryOp ( un_op, op) => {
161
163
stable_mir:: mir:: Rvalue :: UnaryOp ( un_op. stable ( tables) , op. stable ( tables) )
162
164
}
Original file line number Diff line number Diff line change @@ -218,6 +218,9 @@ pub enum Rvalue {
218
218
/// nature of this operation?
219
219
ThreadLocalRef ( stable_mir:: CrateItem ) ,
220
220
221
+ /// Computes a value as described by the operation.
222
+ NullaryOp ( NullOp , Ty ) ,
223
+
221
224
/// Exactly like `BinaryOp`, but less operands.
222
225
///
223
226
/// Also does two's-complement arithmetic. Negation requires a signed integer or a float;
You can’t perform that action at this time.
0 commit comments