rust/src
Dylan DPC e96304b73d
Rollup merge of #95973 - oli-obk:tait_ub3, r=compiler-errors
prevent opaque types from appearing in impl headers

cc `@lqd`

opaque types are not distinguishable from their hidden type at the codegen stage. So we could either end up with cases where the hidden type doesn't implement the trait (which will thus ICE) or where the hidden type does implement the trait (so we'd be using its impl instead of the one written for the opaque type). This can even lead to unsound behaviour without unsafe code.

Fixes https://github.com/rust-lang/rust/issues/86411.
Fixes https://github.com/rust-lang/rust/issues/84660.

rebase of #87382 plus some diagnostic tweaks
2022-04-12 23:17:01 +02:00
..
bootstrap Rollup merge of #95963 - luqmana:llvm-dist-cross-filecheck, r=Mark-Simulacrum 2022-04-12 19:58:17 +02:00
ci CI: do not compile libcore twice when performing LLVM PGO 2022-04-11 10:05:05 +02:00
doc Rollup merge of #95861 - ChrisDenton:windows7-support, r=Dylan-DPC 2022-04-11 12:06:54 +02:00
etc pre-push.sh: Use python3 if python is not found 2022-04-11 12:02:40 -07:00
librustdoc Rollup merge of #95316 - fmease:rustdoc-discr-req-prov-assoc-consts-tys, r=notriddle,GuillaumeGomez 2022-04-12 23:16:55 +02:00
llvm-project@9168e236c5 Update to LLVM 14.0.0 final 2022-03-23 11:42:13 -07:00
rustdoc-json-types rustdoc-json-types: implementors -> implementations 2022-03-14 00:05:11 +00:00
test Rollup merge of #95973 - oli-obk:tait_ub3, r=compiler-errors 2022-04-12 23:17:01 +02:00
tools Add new Deinit statement kind 2022-04-11 08:55:03 -04: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.