rust/compiler/rustc_middle/src
bors 0d1664674a Auto merge of #116922 - Zalathar:unused, r=cjgillot
coverage: Emit mappings for unused functions without generating stubs

For a while I've been annoyed by the fact that generating coverage maps for unused functions involves generating a stub function at the LLVM level.

As I suspected, generating that stub function isn't actually necessary, as long as we specifically tell LLVM about the symbol names of all the functions that have coverage mappings but weren't codegenned (due to being unused).

---

There is some helper code that gets moved around in the follow-up patches, so look at the first patch to see the most important functional changes.

---

`@rustbot` label +A-code-coverage
2023-10-21 16:47:30 +00:00
..
dep_graph Move DepKind to rustc_query_system and define it as u16 2023-09-21 17:06:14 +02:00
hir s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
hooks add some docs to hooks/mod.rs 2023-09-30 22:33:22 +02:00
infer Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
middle s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
mir Rename CoroutineKind::Gen to ::Coroutine 2023-10-20 21:14:01 +00:00
query coverage: Change query codegened_and_inlined_items to a plain function 2023-10-21 12:20:05 +11:00
thir Propagate pattern errors via a new PatKind::Error variant 2023-10-14 13:38:02 +02:00
traits Rollup merge of #106601 - estebank:match-semi, r=cjgillot 2023-10-21 13:58:33 +02:00
ty Rename CoroutineKind::Gen to ::Coroutine 2023-10-20 21:14:01 +00:00
util Merge ExternProviders into the general Providers struct 2023-09-22 20:15:34 +00:00
arena.rs Implement Deref<LayoutS> for Layout 2023-10-02 21:31:16 +02:00
error.rs don't point at const usage site for resolution-time errors 2023-09-14 22:34:05 +02:00
lib.rs s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
lint.rs give FutureIncompatibilityReason variants more explicit names 2023-09-22 08:51:18 +02:00
macros.rs Rename CloneLiftImpls as TrivialLiftImpls. 2023-09-18 09:37:09 +10:00
metadata.rs rustc_metadata: Remove Span from ModChild 2023-04-18 17:25:04 +03:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
values.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00