rust/compiler/rustc_mir/src
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
..
borrow_check add docstrings and add issue to FIXMEs 2021-05-01 19:01:06 -04:00
const_eval remove now-unused 'is_min_const_fn' 2021-04-25 12:54:34 +02:00
dataflow fix few typos 2021-04-19 15:57:08 +03:00
interpret Rollup merge of #84972 - RalfJung:null-ptr-msg, r=oli-obk 2021-05-07 15:20:29 +09:00
monomorphize Add primary marker on codegen unit to take charge of main_wrapper for non-local cases. 2021-05-09 10:52:03 +08:00
transform Avoid predecessors having Drop impls 2021-05-07 22:44:08 -04:00
util spanview debug output caused ICE when a function had no body 2021-04-28 20:27:27 -07:00
lib.rs fix feature use in rustc libs 2021-04-18 22:05:45 +02:00
shim.rs Prepare mir::Constant for ty::Const only supporting valtrees 2021-03-12 12:43:54 +00:00