move assert_unsafe_preconditions to its own file
These macros and functions are not intrinsics, after all.
This commit is contained in:
parent
7f0f9f6580
commit
a517adc66e
@ -780,7 +780,7 @@ fn is_fat_ptr<'tcx>(fx: &FunctionCx<'_, '_, 'tcx>, ty: Ty<'tcx>) -> bool {
|
|||||||
NullOp::OffsetOf(fields) => {
|
NullOp::OffsetOf(fields) => {
|
||||||
layout.offset_of_subfield(fx, fields.iter()).bytes()
|
layout.offset_of_subfield(fx, fields.iter()).bytes()
|
||||||
}
|
}
|
||||||
NullOp::UbCheck(_) => {
|
NullOp::UbChecks => {
|
||||||
let val = fx.tcx.sess.opts.debug_assertions;
|
let val = fx.tcx.sess.opts.debug_assertions;
|
||||||
let val = CValue::by_val(
|
let val = CValue::by_val(
|
||||||
fx.bcx.ins().iconst(types::I8, i64::try_from(val).unwrap()),
|
fx.bcx.ins().iconst(types::I8, i64::try_from(val).unwrap()),
|
||||||
|
Loading…
Reference in New Issue
Block a user