about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJannis Christopher Köhl <mail@koehl.dev>2022-10-19 16:29:01 +0200
committerJannis Christopher Köhl <mail@koehl.dev>2022-11-07 10:35:24 +0100
commit062053ba7950076ce25600896302cb3a363d7862 (patch)
treee814d61c3d3cdc0e1bf142cf06bae5df355a06aa
parent274a49132b7728fa7254fa4b5bd0575bdffa8b56 (diff)
downloadrust-062053ba7950076ce25600896302cb3a363d7862.tar.gz
rust-062053ba7950076ce25600896302cb3a363d7862.zip
Fix unimplemented binary_ptr_op
-rw-r--r--compiler/rustc_mir_transform/src/dataflow_const_prop.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/dataflow_const_prop.rs b/compiler/rustc_mir_transform/src/dataflow_const_prop.rs
index 75d9ea16bd6..b4078625d83 100644
--- a/compiler/rustc_mir_transform/src/dataflow_const_prop.rs
+++ b/compiler/rustc_mir_transform/src/dataflow_const_prop.rs
@@ -474,7 +474,7 @@ impl<'mir, 'tcx> rustc_const_eval::interpret::Machine<'mir, 'tcx> for DummyMachi
         _left: &rustc_const_eval::interpret::ImmTy<'tcx, Self::Provenance>,
         _right: &rustc_const_eval::interpret::ImmTy<'tcx, Self::Provenance>,
     ) -> interpret::InterpResult<'tcx, (interpret::Scalar<Self::Provenance>, bool, Ty<'tcx>)> {
-        unimplemented!()
+        throw_unsup!(Unsupported("".into()))
     }
 
     fn expose_ptr(