rust/src
Dylan DPC ec53c379cc
Rollup merge of #96872 - RalfJung:layout-sanity, r=eddyb
make sure ScalarPair enums have ScalarPair variants; add some layout sanity checks

`@eddyb` suggested that it might be reasonable for `ScalarPair` enums to simply adjust the ABI of their variants accordingly, such that the layout invariant Miri expects actually holds. This PR implements that. I should note though that I don't know much about this layout computation code and what non-Miri consumers expect from it, so tread with caution!

I also added a function to sanity-check that computed layouts are internally consistent. This helped a lot in figuring out the final shape of this PR, though I am also not 100% sure that these sanity checks are the right ones.

Cc `@oli-obk`
Fixes https://github.com/rust-lang/rust/issues/96221
2022-05-10 08:24:05 +02:00
..
bootstrap Auto merge of #96803 - jyn514:faster-assemble, r=Mark-Simulacrum 2022-05-10 03:11:05 +00:00
ci Auto merge of #96689 - gimbles:campfire, r=Mark-Simulacrum 2022-05-08 11:14:47 +00:00
doc Rollup merge of #93661 - ehuss:add-missing-rustc-arg-docs, r=estebank,Mark-Simulacrum 2022-05-10 08:24:00 +02:00
etc Store all generic bounds as where predicates. 2022-04-30 13:55:13 +02:00
librustdoc Rollup merge of #96858 - notriddle:notriddle/cleanup-search-js, r=GuillaumeGomez 2022-05-09 18:45:40 +02:00
llvm-project@593484fc15 chore: Upgrade llvm-project 2022-05-09 09:39:29 +02:00
rustdoc-json-types rustdoc-json-types: implementors -> implementations 2022-03-14 00:05:11 +00:00
test Rollup merge of #96872 - RalfJung:layout-sanity, r=eddyb 2022-05-10 08:24:05 +02:00
tools Auto merge of #95542 - xFrednet:rfc-2383-expect-query, r=wesleywiser 2022-05-09 00:02:55 +00:00
README.md
stage0.json bump stage0 to the latest beta 2022-04-05 22:24:32 +02:00
version bump version to 1.62.0 2022-04-04 09:21:03 +02:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.