rust/src
bors ddad1e1f15 Auto merge of #104376 - compiler-errors:thin-metadata-implies-thin-ptr, r=wesleywiser
layout_of: `T: Thin` implies `sizeof(&T) == sizeof(usize)`

Use the `<T as Pointee>::Metadata` associated type to calculate the layout of a pointee's metadata, instead of hard-coding rules about certain types.

Maybe this approach is overkill -- we could instead hard-code this approach as a fallback, with the matching on `Slice`/`Dynamic`/etc. happening first

Fixes this issue here https://github.com/rust-lang/rust/pull/104338#issuecomment-1312595844 .. But is also useful with transmutes, for example, given the UI test I added below.
2023-01-04 06:28:05 +00:00
..
bootstrap Rollup merge of #104748 - lqd:download_lld, r=jyn514 2023-01-03 17:19:25 -08:00
ci Cleanup mingw-tidy docker job 2023-01-01 21:44:18 +00:00
doc Auto merge of #105712 - amg98:feat/vita-support, r=wesleywiser 2023-01-03 23:38:28 +00:00
etc Make the pre-push script work on directories with spaces 2022-12-17 17:18:53 -06:00
librustdoc Rollup merge of #106411 - notriddle:notriddle/font-feature-settings, r=GuillaumeGomez 2023-01-03 17:19:28 -08:00
llvm-project@3dfd4d93fa Update LLVM submodule 2022-12-07 08:40:49 +01:00
rustdoc-json-types Rustdoc-Json: Report discriminant on all kinds of enum variant. 2023-01-01 19:48:26 +00:00
test Auto merge of #104376 - compiler-errors:thin-metadata-implies-thin-ptr, r=wesleywiser 2023-01-04 06:28:05 +00:00
tools Rollup merge of #106381 - aDotInTheVoid:jsondoclint-more-options, r=notriddle 2023-01-03 17:19:27 -08:00
README.md
stage0.json bump stage0 2022-12-28 09:18:43 -05:00
version bump version to 1.68 2022-12-09 17:49:45 +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 cargo, etc.

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