rust/src
bors 8b7853fe1f Auto merge of #92932 - ouz-a:master, r=oli-obk
Temporary fix for the layout of aligned enums

Fix for the issue #92464

~~I was after this issue for quite some time now, I have a temporary fix for it.
I think the current problem is [here](e75f96763f/compiler/rustc_middle/src/ty/layout.rs (L1305-L1310)) created `tag` value might be wrong, because when I checked `min` and `max` values it's always between 0..1, which results in wrong size comparison in a few lines down below.
I think `min` and `max` values don't take `#[repr(aligned(8))]` into consideration and just act from base values assigned inside the enum. If what I am saying is true, aligned enums were created with the wrong layout for some time.~~

~~As stated in the title this is only a temporary fix and I think this needs further investigation, if someone wants to mentor it I would like to work on that too.~~ 😸

**Edit: Weird some tests fail now going to close this for now...**

**Edit2: I made it work again.**

I think I figured out the main problem of the issue, layout types of aligned enums with custom discriminant types were not handled, which resulted in confusing(such as this issue) behavior down the line, this is a kinda hacky fix for the issue.
2022-02-03 12:46:02 +00:00
..
bootstrap Rollup merge of #93492 - Mark-Simulacrum:shorter-failure-output, r=ehuss 2022-01-31 20:12:58 -08:00
build_helper Hide failed command unless in verbose mode 2022-01-30 17:37:11 -05:00
ci Update browser-ui-test version to 0.5.8 2022-01-29 10:44:18 +01:00
doc Update books 2022-02-01 02:55:55 -08:00
etc Auto merge of #87648 - JulianKnodt:const_eq_constrain, r=oli-obk 2022-01-18 09:58:39 +00:00
librustdoc Rollup merge of #93542 - GuillaumeGomez:lifetime-elision, r=oli-obk 2022-02-02 19:34:03 +01:00
llvm-project@b6b46f596a backport llvm fix for issue 91671. 2022-01-28 09:22:16 -05:00
rustdoc-json-types Increase the format version of rustdoc-json-types 2022-01-20 22:14:02 +01:00
test Auto merge of #92932 - ouz-a:master, r=oli-obk 2022-02-03 12:46:02 +00:00
tools Auto merge of #93101 - Mark-Simulacrum:library-backtrace, r=yaahc 2022-02-02 22:03:23 +00:00
README.md
stage0.json bump bootstrap compiler 2022-01-28 15:01:04 +01:00
version bump version to 1.60.0 2022-01-07 10:04:15 +01: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.