diff options
| author | bors <bors@rust-lang.org> | 2024-07-25 07:52:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-25 07:52:31 +0000 |
| commit | 28e684b47000d4ed4cdb5d982331e5ff8141c1ce (patch) | |
| tree | a5e1318ccf6b2f57ce19455cfca3b58f1d83b0f7 /compiler/rustc_span/src/span_encoding.rs | |
| parent | 004e155c46a2083d4f73212cc47a6f7fb98fcbd1 (diff) | |
| parent | ce7b069fd840916415adf2357c6133e2c1e4625b (diff) | |
| download | rust-28e684b47000d4ed4cdb5d982331e5ff8141c1ce.tar.gz rust-28e684b47000d4ed4cdb5d982331e5ff8141c1ce.zip | |
Auto merge of #127995 - workingjubilee:say-turings-prayer, r=BoxyUwU
compiler: Never debug_assert in codegen In the name of Turing and his Hoarey heralds, assert our truths before creating a monster! The `rustc_codegen_llvm` and `rustc_codegen_ssa` crates are fairly critical for rustc's correctness. Small mistakes here can easily result in undefined behavior, since a "small mistake" can mean something like "link and execute the wrong code". We should probably run any and all asserts in these modules unconditionally on whether this is a "debug build", and damn the costs in performance. ...Especially because the costs in performance seem to be *nothing*. It is not clear how much correctness we gain here, but I'll take free correctness improvements.
Diffstat (limited to 'compiler/rustc_span/src/span_encoding.rs')
0 files changed, 0 insertions, 0 deletions
