diff options
| author | kennytm <kennytm@gmail.com> | 2018-02-28 19:15:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-28 19:15:39 +0800 |
| commit | 62f4fe5132b4dd06e1b208ee7138ffc050d247e7 (patch) | |
| tree | da4fa0b704329040f4ac514a3fb33ff2c5d48fad /src/test/incremental/thinlto | |
| parent | d3fee346a56dfad2ef6956d5679c883e9807cda5 (diff) | |
| parent | 24666443898c142944b4156c22d04130b9db645b (diff) | |
| download | rust-62f4fe5132b4dd06e1b208ee7138ffc050d247e7.tar.gz rust-62f4fe5132b4dd06e1b208ee7138ffc050d247e7.zip | |
Rollup merge of #48541 - varkor:inlined-main, r=michaelwoerister
Ensure main() always has external linkage This ensures that the entry function is never elided due to inlining, even with `inline(always)`. Fixes #47783. There were a couple of possible ways of addressing this issue; I simply picked the one that seemed most direct. A warning could be appropriate, but considering using inlining hints in other places it doesn't apply also throws no warnings, and it seems like an edge case anyway, I haven't added one for now.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
