rust/compiler/rustc_codegen_ssa/src
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
..
back Auto merge of #127995 - workingjubilee:say-turings-prayer, r=BoxyUwU 2024-07-25 07:52:31 +00:00
debuginfo compiler: Never debug_assert in codegen 2024-07-20 00:16:44 -07:00
mir Auto merge of #127995 - workingjubilee:say-turings-prayer, r=BoxyUwU 2024-07-25 07:52:31 +00:00
traits compiler: Never debug_assert in codegen 2024-07-20 00:16:44 -07:00
assert_module_sources.rs Remove #[macro_use] extern crate tracing from rustc_codegen_ssa. 2024-05-23 18:02:40 +10:00
base.rs Move compiler_builtin check to the use case 2024-07-15 23:43:52 +00:00
codegen_attrs.rs Avoid ref when using format! in compiler 2024-07-19 14:52:07 -04:00
common.rs ScalarInt: size mismatches are a bug, do not delay the panic 2024-06-10 13:43:16 +02:00
errors.rs coverage: Tighten validation of #[coverage(off)] and #[coverage(on)] 2024-06-24 20:15:01 +10:00
lib.rs Use tidy to sort crate attributes for all compiler crates. 2024-06-12 15:49:10 +10:00
meth.rs Move vcall_visibility_metadata optimization hint out of a debuginfo generation method 2024-06-21 19:26:06 +00:00
mono_item.rs Avoid ref when using format! in compiler 2024-07-19 14:52:07 -04:00
size_of_val.rs Remove #[macro_use] extern crate tracing from rustc_codegen_ssa. 2024-05-23 18:02:40 +10:00
target_features.rs rustc_codegen_ssa: add s390x_target_feature symbol 2024-07-17 07:55:56 +08:00