rust/src
Matthias Krüger bc0262d0f1
Rollup merge of #143327 - RalfJung:miri-type-validity-error, r=oli-obk
miri: improve errors for type validity assertion failures

Miri has pretty nice errors for type validity violations, printing which field in the type the problem occurs at and so on.

However, we don't see these errors when using e.g. `mem::zeroed` as that uses `assert_zero_valid` to bail out before Miri can detect the UB.

Similar to what we did with `@saethlin's` UB checks, I think we should disable such language UB checks in Miri so that we can get better error messages. If we go for this we should probably say this in the intrinsic docs as well so that people don't think they can rely on these intrinsics catching anything.

Furthermore, I slightly changed `MaybeUninit::assume_init` so that the `.value` field does not show up in error messages any more.

`@rust-lang/miri` what do you think?
2025-07-03 05:21:36 +02:00
..
bootstrap Rollup merge of #143325 - Kobzol:bootstrap-interner, r=clubby789 2025-07-03 05:21:36 +02:00
build_helper Improve error message for rustdoc_json_types tidy check 2025-06-20 16:22:05 +02:00
ci Rollup merge of #143274 - marcoieni:optional-jobs, r=Kobzol 2025-07-02 19:28:09 +02:00
doc Rollup merge of #143178 - eeshvardasikcm:master, r=notriddle 2025-07-01 04:25:35 +02:00
etc Remove unused bootstrap flag 2025-06-18 09:38:28 +02:00
gcc@04ce66d8c9 Update src/gcc submodule to 04ce66d8c918de9273bd7101638ad8724edf5e21 2025-05-14 18:02:02 +02:00
librustdoc Improve CSS for source code block line numbers 2025-07-01 15:49:45 +02:00
llvm-project@ed6566573e Update to LLVM 20.1.7 2025-06-13 14:44:34 +08:00
rustc-std-workspace
rustdoc-json-types Port #[no_mangle] to new attribute parsing infrastructure 2025-06-22 22:17:04 +02:00
tools Rollup merge of #143327 - RalfJung:miri-type-validity-error, r=oli-obk 2025-07-03 05:21:36 +02:00
README.md
stage0 Update stage0 to 1.89.0-beta.1 2025-07-01 10:54:33 -07:00
version Bump the version number to 1.90.0 2025-06-20 10:08:52 -07: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.