rust/compiler/rustc_codegen_ssa
bors 28e684b470 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.
2024-07-25 07:52:31 +00:00
..
src Auto merge of #127995 - workingjubilee:say-turings-prayer, r=BoxyUwU 2024-07-25 07:52:31 +00:00
Cargo.toml Sync ar_archive_writer to LLVM 18.1.3 2024-07-07 16:56:35 +00:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
messages.ftl coverage: Tighten validation of `#[coverage(off)]` and `#[coverage(on)]` 2024-06-24 20:15:01 +10:00

README.md

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.