rust/compiler/rustc_middle
bors d29289c509 Auto merge of #84507 - crlf0710:codegen_nonlocal_main_wrapper, r=nagisa
Add primary marker on codegen unit and generate main wrapper on primary codegen.

This is the codegen part of changes extracted from #84062.

This add a marker called `primary` on each codegen units, where exactly one codegen unit will be `primary = true` at a time. This specific codegen unit will take charge of generating `main` wrapper when `main` is imported from a foreign crate after the implementation of RFC 1260.

cc #28937

I'm not sure who should i ask for review for codegen changes, so feel free to reassign.
r? `@nagisa`
2021-05-10 00:42:31 +00:00
..
benches
src Auto merge of #84507 - crlf0710:codegen_nonlocal_main_wrapper, r=nagisa 2021-05-10 00:42:31 +00:00
Cargo.toml Update to rustc-rayon 0.3.1 2021-03-10 17:53:35 -08:00
README.md

For more information about how rustc works, see the rustc dev guide.