rust/src/tools
Manish Goregaokar 3d86aac990
Rollup merge of #88782 - asquared31415:issue-79559, r=cjgillot
Fix ICE when `start` lang item has wrong generics

In my previous pr #87875 I missed the requirements on the `start` lang item due to its relative difficulty to test and opting for more conservative estimates.  This fixes that by updating the requirement to be exactly one generic type.

The `start` lang item should have exactly one generic type for the return type of the `main` fn ptr passed to it.  I believe having zero would previously *sometimes* compile (often with the use of `fn() -> ()` as the fn ptr but it was likely UB to call if the return type of `main` was not `()` as far as I know) however it also sometimes would not for various errors including ICEs and LLVM errors depending on exact situations.  Having more than 1 generic has always failed with an ICE because only the one generic type is expected and provided.

Fixes #79559, fixes #73584, fixes #83117 (all duplicates)
Relevant to #9307

r? ````@cjgillot````
2021-09-30 18:05:20 -07:00
..
build-manifest Migrate to 2021 2021-09-20 22:21:42 -04:00
bump-stage0 Migrate to 2021 2021-09-20 22:21:42 -04:00
cargo@d56b42c549 Update cargo 2021-09-29 14:07:04 -07:00
cargotest Migrate to 2021 2021-09-20 22:21:42 -04:00
clippy Rollup merge of #88782 - asquared31415:issue-79559, r=cjgillot 2021-09-30 18:05:20 -07:00
compiletest Support incremental in compiletest for non-incremental modes. 2021-09-23 12:16:51 -07:00
error_index_generator Migrate to 2021 2021-09-20 22:21:42 -04:00
expand-yaml-anchors Migrate to 2021 2021-09-20 22:21:42 -04:00
html-checker Migrate to 2021 2021-09-20 22:21:42 -04:00
jsondocck Migrate to 2021 2021-09-20 22:21:42 -04:00
linkchecker Migrate to 2021 2021-09-20 22:21:42 -04:00
lint-docs Adjust documentation for compatibility with 2021 2021-09-20 22:21:43 -04:00
miri@0359331869 Update Miri 2021-09-10 22:17:57 +08:00
remote-test-client Migrate to 2021 2021-09-20 22:21:42 -04:00
remote-test-server Migrate to 2021 2021-09-20 22:21:42 -04:00
rls@bf88026f11 Bump RLS submodule 2021-09-07 11:16:31 -04:00
rust-analyzer@009e6ceb1d ⬆️ rust-analyzer 2021-09-27 10:39:05 +03:00
rust-demangler Migrate to 2021 2021-09-20 22:21:42 -04:00
rust-installer@5254dbfd25 bump rust-installer submodule 2020-12-28 12:48:11 +01:00
rustbook Migrate to 2021 2021-09-20 22:21:42 -04:00
rustc-workspace-hack Migrate to 2021 2021-09-20 22:21:42 -04:00
rustdoc Migrate to 2021 2021-09-20 22:21:42 -04:00
rustdoc-gui Greatly improve limitation handling on parallel rustdoc GUI test run 2021-08-23 14:23:59 +02:00
rustdoc-js Fix rustdoc-js tool string "parsing" 2021-08-11 20:20:17 +02:00
rustdoc-themes Migrate to 2021 2021-09-20 22:21:42 -04:00
rustfmt Migrate to 2021 2021-09-20 22:21:42 -04:00
tidy Rollup merge of #87260 - antoyo:libgccjit-codegen, r=Mark-Simulacrum 2021-09-28 20:00:12 +02:00
tier-check Migrate to 2021 2021-09-20 22:21:42 -04:00
unicode-table-generator Migrate to 2021 2021-09-20 22:21:42 -04:00
unstable-book-gen Migrate to 2021 2021-09-20 22:21:42 -04:00
x Migrate to 2021 2021-09-20 22:21:42 -04:00
cherry-pick.sh Add cherry-pick.sh convenience script. 2021-08-20 11:58:18 +01:00
publish_toolstate.py Disable validate_maintainers. 2021-09-15 09:25:06 -07:00