rust/compiler
bors f8ac8fdacf Auto merge of #86190 - asquared31415:extern-main-86110-fix, r=varkor
Fix ICE when `main` is declared in an `extern` block

Changes in #84401 to implement `imported_main` changed how the crate entry point is found, and a declared `main` in an `extern` block was detected erroneously.  This was causing the ICE described in #86110.

This PR adds a check for this case and emits an error instead.  Previously a `main` declaration in an `extern` block was not detected as an entry point at all, so emitting an error shouldn't break anything that worked previously.  In 1.52.1 stable this is demonstrated, with a `` `main` function not found`` error.

Fixes #86110
2021-07-01 06:39:37 +00:00
..
rustc
rustc_apfloat Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
rustc_arena
rustc_ast Auto merge of #86190 - asquared31415:extern-main-86110-fix, r=varkor 2021-07-01 06:39:37 +00:00
rustc_ast_lowering Arena-allocate Crate during lowering. 2021-06-30 20:31:56 +02:00
rustc_ast_passes Auto merge of #86164 - FabianWolff:issue-86053, r=davidtwco 2021-06-17 06:34:12 +00:00
rustc_ast_pretty Rollup merge of #86358 - klensy:pp-loop, r=Mark-Simulacrum 2021-06-29 00:26:55 +09:00
rustc_attr
rustc_builtin_macros Auto merge of #86599 - Amanieu:asm_raw, r=nagisa 2021-06-25 20:44:28 +00:00
rustc_codegen_cranelift Auto merge of #86475 - crlf0710:miri_vtable_refactor, r=bjorn3 2021-06-29 15:52:21 +00:00
rustc_codegen_llvm Auto merge of #86617 - joshtriplett:prune-dependencies, r=Mark-Simulacrum 2021-07-01 03:49:47 +00:00
rustc_codegen_ssa Auto merge of #86475 - crlf0710:miri_vtable_refactor, r=bjorn3 2021-06-29 15:52:21 +00:00
rustc_data_structures rustc_data_structures: Drop unused dependency on crossbeam-utils 2021-06-25 01:03:16 -07:00
rustc_driver Auto merge of #86617 - joshtriplett:prune-dependencies, r=Mark-Simulacrum 2021-07-01 03:49:47 +00:00
rustc_error_codes Fix typo and improve documentation for E0632 2021-06-29 01:09:44 +02:00
rustc_errors Update to new bootstrap compiler 2021-06-28 11:30:49 -04:00
rustc_expand Don't lint :pat when re-parsing a macro from another crate. 2021-06-24 22:04:55 +00:00
rustc_feature Panic on trying to find non-feature incompleteness 2021-06-28 18:37:54 -04:00
rustc_fs_util
rustc_graphviz Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
rustc_hir Update to new bootstrap compiler 2021-06-28 11:30:49 -04:00
rustc_hir_pretty Rollup merge of #86358 - klensy:pp-loop, r=Mark-Simulacrum 2021-06-29 00:26:55 +09:00
rustc_incremental Simplify DepGraph creation. 2021-06-30 20:31:52 +02:00
rustc_index
rustc_infer rustc_infer: Remove unused dependency rustc_ast 2021-06-25 01:12:59 -07:00
rustc_interface Auto merge of #86617 - joshtriplett:prune-dependencies, r=Mark-Simulacrum 2021-07-01 03:49:47 +00:00
rustc_lexer Rename 'bad prefix' to 'unknown prefix'. 2021-06-26 23:11:14 +08:00
rustc_lint Rollup merge of #85520 - FabianWolff:issue-85475, r=jackh726 2021-07-01 05:20:55 +09:00
rustc_lint_defs Auto merge of #86617 - joshtriplett:prune-dependencies, r=Mark-Simulacrum 2021-07-01 03:49:47 +00:00
rustc_llvm
rustc_macros Lint for unused borrows as part of UNUSED_MUST_USE 2021-06-18 15:09:40 +08:00
rustc_metadata Auto merge of #86617 - joshtriplett:prune-dependencies, r=Mark-Simulacrum 2021-07-01 03:49:47 +00:00
rustc_middle Auto merge of #86190 - asquared31415:extern-main-86110-fix, r=varkor 2021-07-01 06:39:37 +00:00
rustc_mir Auto merge of #86695 - sexxi-goose:closure_size, r=nikomatsakis 2021-06-30 13:42:50 +00:00
rustc_mir_build fixup! Editon 2021 enables precise capture 2021-06-27 21:46:55 -04:00
rustc_parse Auto merge of #86617 - joshtriplett:prune-dependencies, r=Mark-Simulacrum 2021-07-01 03:49:47 +00:00
rustc_parse_format
rustc_passes Auto merge of #86190 - asquared31415:extern-main-86110-fix, r=varkor 2021-07-01 06:39:37 +00:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl rustc_query_impl: Remove unused dependencies 2021-06-25 01:13:00 -07:00
rustc_query_system Auto merge of #85154 - cjgillot:lessfn, r=bjorn3 2021-06-15 14:52:58 +00:00
rustc_resolve Fix garbled suggestion for missing lifetime specifier 2021-06-28 00:56:24 +02:00
rustc_save_analysis
rustc_serialize Emit warnings for unused fields in custom targets. 2021-06-17 21:48:02 +02:00
rustc_session Auto merge of #86617 - joshtriplett:prune-dependencies, r=Mark-Simulacrum 2021-07-01 03:49:47 +00:00
rustc_span Auto merge of #86386 - inquisitivecrystal:better-errors-for-display-traits-v3, r=estebank 2021-06-23 03:16:04 +00:00
rustc_symbol_mangling rustc_symbol_mangling: Remove unused dependency rustc_ast 2021-06-25 01:13:00 -07:00
rustc_target Point to the updated version of some dead links 2021-06-23 19:36:51 -04:00
rustc_trait_selection Auto merge of #86386 - inquisitivecrystal:better-errors-for-display-traits-v3, r=estebank 2021-06-23 03:16:04 +00:00
rustc_traits Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
rustc_ty_utils
rustc_type_ir
rustc_typeck Rollup merge of #86728 - FabianWolff:issue-86721, r=LeSeulArtichaut 2021-07-01 05:20:58 +09:00