rust/src
bors f893495e3d Auto merge of #98957 - RalfJung:zst-are-different, r=lcnr,oli-obk
don't allow ZST in ScalarInt

There are several indications that we should not ZST as a ScalarInt:
- We had two ways to have ZST valtrees, either an empty `Branch` or a `Leaf` with a ZST in it.
  `ValTree::zst()` used the former, but the latter could possibly arise as well.
- Likewise, the interpreter had `Immediate::Uninit` and `Immediate::Scalar(Scalar::ZST)`.
- LLVM codegen already had to special-case ZST ScalarInt.

So I propose we stop using ScalarInt to represent ZST (which are clearly not integers). Instead, we can add new ZST variants to those types that did not have other variants which could be used for this purpose.

Based on https://github.com/rust-lang/rust/pull/98831. Only the commits starting from "don't allow ZST in ScalarInt" are new.

r? `@oli-obk`
2022-07-09 17:16:00 +00:00
..
bootstrap Auto merge of #98328 - topjohnwu:fix_cross, r=jyn514 2022-07-09 10:45:30 +00:00
ci Auto merge of #98439 - ehuss:cleanup-ci-script, r=Mark-Simulacrum 2022-07-03 19:39:28 +00:00
doc Implement support for DWARF version 5. 2022-07-08 11:31:08 -07:00
etc Rollup merge of #95446 - notseanray:master, r=Mark-Simulacrum 2022-06-22 15:16:08 +09:00
librustdoc Rollup merge of #95635 - davidtwco:terminal-width-stabilization, r=oli-obk 2022-07-08 08:00:36 +02:00
llvm-project@8b6b5014fd Update llvm-project 2022-07-05 17:57:29 +02:00
rustdoc-json-types rustdoc-json: Fix HRTBs for WherePredicate::BoundPredicate 2022-05-04 21:03:01 +02:00
test tweak names and output and bless 2022-07-09 07:43:56 -04:00
tools Auto merge of #99034 - RalfJung:miri, r=Mark-Simulacrum 2022-07-08 20:36:33 +00:00
README.md
stage0.json bump stage0 compiler 2022-06-29 15:35:30 +02:00
version bump version to 1.64.0 2022-06-24 17:27:24 +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.