1
Fork 0
rust/compiler/rustc_codegen_ssa
Matthias Krüger df4d56307b
Rollup merge of #118973 - Enselic:fix-IncorrectCguReuseType, r=michaelwoerister
rustc_codegen_ssa: Don't drop `IncorrectCguReuseType` , make `rustc_expected_cgu_reuse` attr work

In [100753], `IncorrectCguReuseType` accidentally stopped being emitted by removing `diag.span_err(...)`. Begin emitting it again rather than just blindly dropping it, and adjust tests accordingly.

We assume that there are no bugs and that the currently actual CGU reuse is correct. If there are bugs, they will be discovered and fixed eventually, and the tests will then be updated.

[100753]: https://github.com/rust-lang/rust/pull/100753/commits/706452eba74026c51e8d0fa30aee2497c69eafc0#diff-048389738ddcbe0f9765291a29db1fed9a5f03693d4781cfb5aaa97ffb3c7f84

Closes #118972
2023-12-20 09:46:11 +01:00
..
src Rollup merge of #118973 - Enselic:fix-IncorrectCguReuseType, r=michaelwoerister 2023-12-20 09:46:11 +01:00
Cargo.toml jobserver: check file descriptors 2023-11-29 18:00:03 +03:00
messages.ftl Remove cgu_reuse_tracker from Session 2023-10-09 18:39:41 +00:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00

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