about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-02-28 01:55:35 +0100
committerGitHub <noreply@github.com>2020-02-28 01:55:35 +0100
commit350491da19cf92ffd4116e342eed1dc32a139704 (patch)
tree8bec39a51a86254747a13cd4bc1ab6230e3864bb /src/test/debuginfo/enum-thinlto.rs
parent6d69caba110c0c2fb90180df1cbc8be5033b91d4 (diff)
parenta796af7a7685a21e8c43f93aa5fb3007cd847253 (diff)
downloadrust-350491da19cf92ffd4116e342eed1dc32a139704.tar.gz
rust-350491da19cf92ffd4116e342eed1dc32a139704.zip
Rollup merge of #69379 - jumbatm:llvm-sigsegv, r=pnkfelix
Fail on multiple declarations of `main`.

Closes #67946.

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.

r? @pnkfelix
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions