rust/src
Matthias Krüger a4ef47d6b3
Rollup merge of #105897 - oli-obk:tait_patterns, r=TaKO8Ki
Fix an opaque type ICE

fixes #104551

The issue is that if you have

```rust
type T = impl Sized;
let (_a, _b): T = ..
```

we have only the type annotation `T`, but want to use that ascription for `_a` and `_b`, so what we generate is a type ascription plus a field projection saying `_a`'s type is `T::0`. Of course `T` has no fields. Of course we could also not generate type annotations for projections into opaque types at all, but that's more fragile, as we now have to make sure that 12bbdbdb44/compiler/rustc_mir_build/src/build/matches/mod.rs (L709) doesn't have any arm that introduces a user type annotation except for `PatKind::Binding`.
2022-12-20 23:35:15 +01:00
..
bootstrap Don't panic on stable since miri is not available there 2022-12-19 14:48:45 +00:00
ci Auto merge of #105845 - lqd:revert-thinlto-revert, r=Mark-Simulacrum 2022-12-19 06:25:22 +00:00
doc Update books 2022-12-19 12:01:02 -05:00
etc Fix natvis VecDeque formatter 2022-11-27 18:09:56 +01:00
librustdoc Rollup merge of #105933 - taiki-e:doc-cfg, r=GuillaumeGomez 2022-12-20 08:51:16 +01:00
llvm-project@3dfd4d93fa Update LLVM submodule 2022-12-07 08:40:49 +01:00
rustdoc-json-types Rollup merge of #103065 - aDotInTheVoid:rdj-arg-pattern, r=GuillaumeGomez 2022-11-30 19:53:17 +01:00
test Rollup merge of #105897 - oli-obk:tait_patterns, r=TaKO8Ki 2022-12-20 23:35:15 +01:00
tools Rollup merge of #105935 - Ezrashaw:add-test+docs-for-e0377, r=GuillaumeGomez 2022-12-20 08:51:16 +01:00
README.md
stage0.json Bump to latest beta 2022-11-06 17:11:02 -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.