We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84595c2 commit fa43703Copy full SHA for fa43703
src/base.rs
@@ -874,6 +874,15 @@ fn codegen_stmt<'tcx>(
874
lval.write_cvalue(fx, val);
875
return;
876
}
877
+ NullOp::ContractChecks => {
878
+ let val = fx.tcx.sess.contract_checks();
879
+ let val = CValue::by_val(
880
+ fx.bcx.ins().iconst(types::I8, i64::try_from(val).unwrap()),
881
+ fx.layout_of(fx.tcx.types.bool),
882
+ );
883
+ lval.write_cvalue(fx, val);
884
+ return;
885
+ }
886
};
887
let val = CValue::by_val(
888
fx.bcx.ins().iconst(fx.pointer_type, i64::try_from(val).unwrap()),
0 commit comments