rust/src
Joshua Nelson 55c040e529 Make it possible to run bootstrap on a different machine than the one it was built
- Default to trying git rev-parse for the root directory

  CARGO_MANIFEST_DIR is a path on the build machine, not the running machine.
  Don't require this to succeed, to allow building from a tarball; in that case fall back to CARGO_MANIFEST_DIR.

- Set `initial_rustc` to a path based on the path of the running executable, not CARGO_MANIFEST_DIR.

  We only reset `initial_rustc` if we're sure this isn't the working tree bootstrap was originally built in,
  since I'm paranoid that setting this in other cases will cause things to break;
  it's not clear to me when $RUSTC differs from `build/$TARGET/stage0/bin/rustc` (maybe never? but better to be sure).

  Instead, only set this when
  a) We are not using a custom rustc. If someone has specified a custom rustc we should respect their wishes.
  b) We are in a checkout of rust-lang/rust other than the one bootstrap was built in.
2022-09-14 18:27:04 -05:00
..
bootstrap Make it possible to run bootstrap on a different machine than the one it was built 2022-09-14 18:27:04 -05:00
ci Distribute bootstrap in CI artifacts 2022-09-14 18:26:59 -05:00
doc Auto merge of #99916 - dpaoliello:stablizerawdylib, r=wesleywiser 2022-09-10 04:14:34 +00:00
etc Rustdoc-Json: More accurate struct type. 2022-09-07 09:42:23 +01:00
librustdoc Auto merge of #101613 - GuillaumeGomez:codeblock-tooltip, r=notriddle 2022-09-10 23:13:23 +00:00
llvm-project@670e5f673a Update LLVM submodule 2022-09-02 10:18:12 +02:00
rustdoc-json-types Rustdoc-Json: More accurate struct type. 2022-09-07 09:42:23 +01:00
test Update unit test outputs 2022-09-11 14:21:40 +08:00
tools Auto merge of #98559 - jackh726:remove-reempty, r=oli-obk 2022-09-10 20:54:01 +00:00
README.md Sunset RLS 2022-08-27 21:36:08 -07:00
stage0.json Bump stage0 2022-08-29 19:30:11 +02:00
version Bump to 1.65.0 2022-08-05 11:32:46 -04: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, miri, etc.

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