Eliminate UbCheck for non-standard libraries

This commit is contained in:
DianQK
2024-03-10 16:29:39 +08:00
parent 10a7aa14fe
commit 47ed73a7b5
14 changed files with 118 additions and 45 deletions

View File

@@ -1361,8 +1361,8 @@ pub enum NullOp<'tcx> {
AlignOf,
/// Returns the offset of a field
OffsetOf(&'tcx List<(VariantIdx, FieldIdx)>),
/// Returns whether we want to check for UB.
/// This returns the value of `cfg!(debug_assertions)` at monomorphization time.
/// Returns whether we should perform some UB-checking at runtime.
/// See the `ub_checks` intrinsic docs for details.
UbChecks,
}