diff options
| author | jumbatm <jumbatm@gmail.com> | 2020-02-23 01:43:47 +1000 |
|---|---|---|
| committer | jumbatm <jumbatm@gmail.com> | 2020-02-23 02:06:11 +1000 |
| commit | a796af7a7685a21e8c43f93aa5fb3007cd847253 (patch) | |
| tree | aff31a22f00a37126f665f5c3b3740aa4e673ef4 /src/test/debuginfo/enum-thinlto.rs | |
| parent | 07534591ffb222308c5ac84aad4da64582811283 (diff) | |
| download | rust-a796af7a7685a21e8c43f93aa5fb3007cd847253.tar.gz rust-a796af7a7685a21e8c43f93aa5fb3007cd847253.zip | |
Fail on multiple declarations of `main`.
Previously, when inserting the entry function, we only checked for duplicate _definitions_ of `main`. However, it's possible to cause problems even only having a duplicate _declaration_. For example, shadowing `main` using an extern block isn't caught by the current check, and causes an assertion failure down the line in in LLVM code.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
