rust/src
bors 20a6f3a8a8 Auto merge of #97513 - jyn514:submodule-handling, r=Mark-Simulacrum
Fully remove submodule handling from bootstrap.py

These submodules were previously updated in python because Cargo gives a hard error if toml files
are missing from the workspace:

```
error: failed to load manifest for workspace member `/home/jnelson/rust-lang/rust/src/tools/rls`

Caused by:
  failed to read `/home/jnelson/rust-lang/rust/src/tools/rls/Cargo.toml`

Caused by:
  No such file or directory (os error 2)
failed to run: /home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo build --manifest-path /home/jnelson/rust-lang/rust/src/bootstrap/Cargo.toml
```

However, bootstrap doesn't actually need to be part of the workspace.
Remove it so we can move submodule handling fully to Rust, avoiding duplicate code between Rust and Python.

Note that this does break `cargo run`; it has to be `cd src/bootstrap && cargo run` now.
Given that we're planning to make the main entrypoint a shell script (or rust binary),
I think this is a good tradeoff for reduced complexity in bootstrap.py.

To get this working, I also had to remove support for vendoring when using the git sources, because `cargo vendor` requires all submodules to be checked out. I think this is ok; people who care about this are likely already using the pre-vendored `rustc-src` tarball.

Fixes https://github.com/rust-lang/rust/issues/90764. Helps with #94829
2022-06-25 21:01:10 +00:00
..
bootstrap Remove vendoring support when building from git sources 2022-06-21 23:42:56 -05:00
ci Rollup merge of #98422 - GuillaumeGomez:browser-ui-test-update, r=Dylan-DPC 2022-06-23 14:39:19 -07:00
doc Rollup merge of #98401 - ehuss:extern-tracking, r=Dylan-DPC 2022-06-25 15:14:12 +02:00
etc Rollup merge of #95446 - notseanray:master, r=Mark-Simulacrum 2022-06-22 15:16:08 +09:00
librustdoc Rollup merge of #91264 - GuillaumeGomez:macro-jump-to-def, r=jsha 2022-06-24 16:43:41 +09:00
llvm-project@c9e2e89ed3 Update LLVM submodule 2022-06-03 15:57:32 +02:00
rustdoc-json-types rustdoc-json: Fix HRTBs for WherePredicate::BoundPredicate 2022-05-04 21:03:01 +02:00
test Auto merge of #98486 - matthiaskrgr:rollup-u7m508x, r=matthiaskrgr 2022-06-25 15:19:31 +00:00
tools Auto merge of #97513 - jyn514:submodule-handling, r=Mark-Simulacrum 2022-06-25 21:01:10 +00:00
README.md
stage0.json change stage0.json to reduce the chance of merge conflicts 2022-06-09 19:43:11 +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.