rust/src
bors 39e20f1ae5 Auto merge of #86255 - Smittyvb:mir-alloc-oom, r=RalfJung,oli-obk
Support allocation failures when interpreting MIR

This closes #79601 by handling the case where memory allocation fails during MIR interpretation, and translates that failure into an `InterpError`. The error message is "tried to allocate more memory than available to compiler" to make it clear that the memory shortage is happening at compile-time by the compiler itself, and that it is not a runtime issue.

Now that memory allocation can fail, it would be neat if Miri could simulate low-memory devices to make it easy to see how much memory a Rust program needs.

Note that this breaks Miri because it assumes that allocation can never fail.
2021-07-04 09:15:36 +00:00
..
bootstrap Rollup merge of #86737 - jyn514:doc-tools, r=Mark-Simulacrum 2021-07-02 11:35:29 +02:00
build_helper Revert "Revert "Move llvm submodule updates to rustbuild"" 2021-06-04 22:17:01 -04:00
ci Update container browser-ui-test@0.4.1 2021-07-01 10:22:03 +02:00
doc Update to new bootstrap compiler 2021-06-28 11:30:49 -04:00
etc Improve debug symbol names to avoid ambiguity and work better with MSVC's debugger 2021-06-30 11:10:29 -07:00
librustdoc Warn when rustdoc:: group is omitted from lint names 2021-07-03 15:32:09 -04:00
llvm-project@39c5555872 Update LLVM submodule 2021-05-23 18:05:11 +10:00
rustdoc-json-types rustdoc- Show defaults on const generics 2021-06-03 09:01:25 +01:00
test Auto merge of #86255 - Smittyvb:mir-alloc-oom, r=RalfJung,oli-obk 2021-07-04 09:15:36 +00:00
tools Update cargo 2021-07-02 14:23:30 -07:00
README.md update message 2021-02-14 10:08:37 +05:30
stage0.txt Update to new bootstrap compiler 2021-06-28 11:30:49 -04:00
version Bump to 1.54 2021-06-11 19:19:55 -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 rustdoc, rls, etc.

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