rust/src
bors dd600eff3a Auto merge of #3798 - RalfJung:miri-script-remap-path-prefix, r=saethlin
miri-script: use --remap-path-prefix to print errors relative to the right root

Inspired by https://github.com/rust-lang/rust-clippy/pull/13232, this makes it so that when cargo-miri fails to build, `./miri check` will print errors with paths like `cargo-miri/src/setup.rs`. That means we can get rid of the miri-symlink-hacks and instead tell RA to just always invoke the `./miri clippy` script just once, in the root.

This means that we can no longer share a target dir between cargo-miri and miri as the RUSTFLAGS are different to crates that are shared in the dependency tree need to be built twice with two different flags. `miri-script` hence now has to set the MIRI environment variable to tell the `cargo miri setup` invocation where to find Miri.

I also made it so that errors in miri-script itself are properly shown in RA, for which the `./miri` shell wrapper needs to set the right flags.
2024-08-12 08:58:03 +00:00
..
bootstrap Auto merge of #122362 - Zoxc:rustc_driver_static_std, r=oli-obk,lqd,bjorn3,Kobzol 2024-08-11 15:08:03 +00:00
ci Install zstd in dist builder image. 2024-08-09 05:55:40 -07:00
doc Auto merge of #122362 - Zoxc:rustc_driver_static_std, r=oli-obk,lqd,bjorn3,Kobzol 2024-08-11 15:08:03 +00:00
etc Fix debuginfo providers/tests 2024-08-11 16:51:22 -04:00
librustdoc Rollup merge of #128923 - GuillaumeGomez:negative-impls-items, r=fmease 2024-08-10 16:23:55 +02:00
llvm-project@ccf4c38bdd Update to LLVM 19 rc2 2024-08-05 11:53:11 +02:00
rustdoc-json-types rustdoc-json-types Discriminant: fix typo 2024-08-09 20:50:00 +02:00
tools Auto merge of #3798 - RalfJung:miri-script-remap-path-prefix, r=saethlin 2024-08-12 08:58:03 +00:00
README.md
stage0 Bump src/stage0 with determinism 2024-07-30 15:16:35 -07:00
version Bump to 1.82 2024-07-20 10:30:39 -04:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

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