1
Fork 0
rust/compiler/rustc_passes/src
bors 18b53cefdf Auto merge of #95604 - nbdd0121:used2, r=petrochenkov
Generate synthetic object file to ensure all exported and used symbols participate in the linking

Fix #50007 and #47384

This is the synthetic object file approach that I described in https://github.com/rust-lang/rust/pull/95363#issuecomment-1079932354, allowing all exported and used symbols to be linked while still allowing them to be GCed.

Related #93791, #95363

r? `@petrochenkov`
cc `@carbotaniuman`
2022-04-25 16:14:54 +00:00
..
liveness Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
check_attr.rs Rollup merge of #95006 - tmiasko:thread-local-static, r=wesleywiser 2022-04-16 19:42:02 +02:00
check_const.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
dead.rs Fix lints. 2022-04-23 23:01:19 +02:00
diagnostic_items.rs use format-args-capture and remove unnecessary nested if blocks in some parts of rustc_passes 2022-03-22 00:02:18 +09:00
entry.rs Stop using CRATE_DEF_INDEX. 2022-04-17 12:14:42 +02:00
hir_id_validator.rs Stop using CRATE_DEF_INDEX. 2022-04-17 12:14:42 +02:00
hir_stats.rs rename to BoundKind and add comments 2022-04-21 10:09:32 +08:00
intrinsicck.rs Reimplement lowering of sym operands for asm! so that it also works with global_asm! 2022-04-14 15:32:03 +01:00
lang_items.rs add mapping from DefKind to Target and remove more ItemLikeVisitor impls 2022-04-08 12:00:23 -04:00
layout_test.rs Remove in_band_lifetimes for rustc_passes 2021-12-15 20:12:53 -07:00
lib.rs 5 - Make more use of let_chains 2022-02-28 15:52:36 -03:00
lib_features.rs Handle rustc_const_stable attribute in library feature collector 2022-03-31 12:34:46 -07:00
liveness.rs Reimplement lowering of sym operands for asm! so that it also works with global_asm! 2022-04-14 15:32:03 +01:00
loops.rs Replace NestedVisitorMap with NestedFilter 2022-01-16 16:02:36 -06:00
naked_functions.rs Reimplement lowering of sym operands for asm! so that it also works with global_asm! 2022-04-14 15:32:03 +01:00
reachable.rs Make #[used] considered reachable 2022-04-18 20:50:56 +01:00
region.rs Rollup merge of #95497 - nyurik:compiler-spell-comments, r=compiler-errors 2022-03-31 04:57:28 +02:00
stability.rs Stop using CRATE_DEF_INDEX. 2022-04-17 12:14:42 +02:00
upvars.rs Replace NestedVisitorMap with NestedFilter 2022-01-16 16:02:36 -06:00
weak_lang_items.rs restrict access to span only when we emit diagnostic 2022-04-09 13:53:32 -04:00