@@ -232,9 +232,7 @@ impl<'tcx> Stable<'tcx> for mir::Rvalue<'tcx> {
232232 )
233233 }
234234 }
235- NullaryOp ( null_op, ty) => {
236- crate :: mir:: Rvalue :: NullaryOp ( null_op. stable ( tables, cx) , ty. stable ( tables, cx) )
237- }
235+ NullaryOp ( null_op) => crate :: mir:: Rvalue :: NullaryOp ( null_op. stable ( tables, cx) ) ,
238236 UnaryOp ( un_op, op) => {
239237 crate :: mir:: Rvalue :: UnaryOp ( un_op. stable ( tables, cx) , op. stable ( tables, cx) )
240238 }
@@ -314,19 +312,16 @@ impl<'tcx> Stable<'tcx> for mir::FakeBorrowKind {
314312 }
315313}
316314
317- impl < ' tcx > Stable < ' tcx > for mir:: NullOp < ' tcx > {
315+ impl < ' tcx > Stable < ' tcx > for mir:: NullOp {
318316 type T = crate :: mir:: NullOp ;
319317 fn stable < ' cx > (
320318 & self ,
321- tables : & mut Tables < ' cx , BridgeTys > ,
322- cx : & CompilerCtxt < ' cx , BridgeTys > ,
319+ _ : & mut Tables < ' cx , BridgeTys > ,
320+ _ : & CompilerCtxt < ' cx , BridgeTys > ,
323321 ) -> Self :: T {
324322 use rustc_middle:: mir:: NullOp :: * ;
325323 use rustc_middle:: mir:: RuntimeChecks :: * ;
326324 match self {
327- OffsetOf ( indices) => crate :: mir:: NullOp :: OffsetOf (
328- indices. iter ( ) . map ( |idx| idx. stable ( tables, cx) ) . collect ( ) ,
329- ) ,
330325 RuntimeChecks ( op) => crate :: mir:: NullOp :: RuntimeChecks ( match op {
331326 UbChecks => crate :: mir:: RuntimeChecks :: UbChecks ,
332327 ContractChecks => crate :: mir:: RuntimeChecks :: ContractChecks ,
0 commit comments