Files
rust/src
bors 4f99f37b7e Auto merge of #50880 - glandium:oom, r=SimonSapin
OOM handling changes

As discussed in https://github.com/rust-lang/rust/issues/49668#issuecomment-384893456 and subsequent.

This does have codegen implications. Even without the hooks, and with a handler that ignores the arguments, the compiler doesn't eliminate calling `rust_oom` with the `Layout`. Even if it managed to eliminate that, with the hooks, I don't know if the compiler would be able to figure out it can skip it if the hook is never set.

A couple implementation notes:
- I went with explicit enums rather than bools because it makes it clearer in callers what is being requested.
- I didn't know what `feature` to put the hook setting functions behind. (and surprisingly, the compile went through without any annotation on the functions)
- There's probably some bikeshedding to do on the naming.

Cc: @Simonsapin, @sfackler
2018-05-30 11:35:00 +00:00
..
2018-05-30 05:35:48 +09:00
2018-05-27 17:28:35 +02:00
2018-05-26 15:20:23 +03:00
2018-05-24 12:01:28 -04:00
2018-05-26 15:20:23 +03:00
2018-05-26 15:20:23 +03:00
2018-05-26 15:20:23 +03:00
2018-05-24 16:22:58 +02:00
2018-05-24 16:21:23 +02:00
2018-05-29 10:19:47 -03:00
2018-05-17 08:47:25 -06:00

This directory contains the source code of the rust project, including:

  • rustc and its tests
  • libstd
  • Various submodules for tools, like rustdoc, rls, etc.

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

Their is also useful content in the following READMEs, which are gradually being moved over to the guide: