diff options
| author | bors <bors@rust-lang.org> | 2024-03-10 01:23:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-10 01:23:54 +0000 |
| commit | ef862a707b696a4a57f6126ebad7b0cc42af98f0 (patch) | |
| tree | 98980d63860e4c74a737f5b5bffc30b18bf15672 /tests/rustdoc-js-std/parser-slice-array.js | |
| parent | 5ec45d3d7a42234a03a1dc681e794ecb6f276725 (diff) | |
| parent | 127c232050df04a4ae06fc536a428c34e248c5d9 (diff) | |
| download | rust-ef862a707b696a4a57f6126ebad7b0cc42af98f0.tar.gz rust-ef862a707b696a4a57f6126ebad7b0cc42af98f0.zip | |
Auto merge of #121662 - saethlin:precondition-unification, r=RalfJung
Distinguish between library and lang UB in assert_unsafe_precondition As described in https://github.com/rust-lang/rust/pull/121583#issuecomment-1963168186, `assert_unsafe_precondition` now explicitly distinguishes between language UB (conditions we explicitly optimize on) and library UB (things we document you shouldn't do, and maybe some library internals assume you don't do). `debug_assert_nounwind` was originally added to avoid the "only at runtime" aspect of `assert_unsafe_precondition`. Since then the difference between the macros has gotten muddied. This totally revamps the situation. Now _all_ preconditions shall be checked with `assert_unsafe_precondition`. If you have a precondition that's only checkable at runtime, do a `const_eval_select` hack, as done in this PR. r? RalfJung
Diffstat (limited to 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions
