]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #69379 - jumbatm:llvm-sigsegv, r=pnkfelix
authorDylan DPC <dylan.dpc@gmail.com>
Fri, 28 Feb 2020 00:55:35 +0000 (01:55 +0100)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2020 00:55:35 +0000 (01:55 +0100)
commit350491da19cf92ffd4116e342eed1dc32a139704
tree8bec39a51a86254747a13cd4bc1ab6230e3864bb
parent6d69caba110c0c2fb90180df1cbc8be5033b91d4
parenta796af7a7685a21e8c43f93aa5fb3007cd847253
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