Files
rust/src
Mark Simulacrum a689b2d8ac Rollup merge of #51312 - frewsxcv:clarify-hash-map-entry-get-mut, r=dtolnay
Clarify the difference between get_mut and into_mut for OccupiedEntry

The examples for both hash_map::OccupiedEntry::get_mut and
hash_map::OccupiedEntry::into_mut were almost identical. This led to some
confusion over the difference, namely why you would ever use get_mut when
into_mut gives alonger lifetime. Reddit thread:
https://www.reddit.com/r/rust/comments/8a5swr/why_does_hashmaps

This commit adds two lines and a comment to the example, to show that the
entry object can be re-used after calling get_mut.

Closes https://github.com/rust-lang/rust/issues/49745
2018-06-02 19:55:09 -06:00
..
2018-05-27 17:28:35 +02:00
2018-06-01 14:56:01 +02:00
2018-06-01 14:56:01 +02:00
2018-06-01 14:56:01 +02:00
2018-06-01 14:56:01 +02: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-06-01 15:00:17 +02: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: