@@ -48,7 +48,7 @@ impl<'a, 'tcx> EvalContextExt<'tcx> for EvalContext<'a, 'tcx, super::Evaluator>
48
48
// These work on anything
49
49
Eq if left_kind == right_kind => {
50
50
let result = match ( left, right) {
51
- ( PrimVal :: Bytes ( left ) , PrimVal :: Bytes ( right ) ) => left == right ,
51
+ ( PrimVal :: Bytes ( _ ) , PrimVal :: Bytes ( _ ) ) => bug ! ( "wrong usage of `ptr_op` by `interpret`" ) ,
52
52
( PrimVal :: Ptr ( left) , PrimVal :: Ptr ( right) ) => left == right,
53
53
( PrimVal :: Undef , _) | ( _, PrimVal :: Undef ) => return Err ( EvalError :: ReadUndefBytes ) ,
54
54
_ => false ,
@@ -57,7 +57,7 @@ impl<'a, 'tcx> EvalContextExt<'tcx> for EvalContext<'a, 'tcx, super::Evaluator>
57
57
}
58
58
Ne if left_kind == right_kind => {
59
59
let result = match ( left, right) {
60
- ( PrimVal :: Bytes ( left ) , PrimVal :: Bytes ( right ) ) => left != right ,
60
+ ( PrimVal :: Bytes ( _ ) , PrimVal :: Bytes ( _ ) ) => bug ! ( "wrong usage of `ptr_op` by `interpret`" ) ,
61
61
( PrimVal :: Ptr ( left) , PrimVal :: Ptr ( right) ) => left != right,
62
62
( PrimVal :: Undef , _) | ( _, PrimVal :: Undef ) => return Err ( EvalError :: ReadUndefBytes ) ,
63
63
_ => true ,
0 commit comments