rust/compiler/rustc_middle/src/middle
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
..
codegen_fn_attrs.rs #[used(linker)] attribute (https://github.com/dtolnay/linkme/issues/41) 2022-02-06 20:23:23 +01:00
dependency_format.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
exported_symbols.rs Synthesis object file for #[used] and exported symbols 2022-04-18 20:50:56 +01:00
lang_items.rs don't take TyCtxt by reference 2020-09-18 20:49:25 +02:00
limits.rs Remove Session.used_attrs and move logic to CheckAttrVisitor 2021-08-21 13:27:27 -05:00
mod.rs Remove SymbolStr. 2021-12-15 13:30:26 +11:00
privacy.rs Remove NodeIdHashingMode. 2022-04-12 19:59:32 +02:00
region.rs Update issue-92893.stderr 2022-04-14 23:42:15 +03:00
resolve_lifetime.rs Store LocalDefId in is_late_bound_map. 2022-04-10 13:36:06 +02:00
stability.rs Stop using CRATE_DEF_INDEX. 2022-04-17 12:14:42 +02:00