Mazdak Farrokhzad 18081890ea
Rollup merge of #62388 - rust-lang:fix-loop-break-mir-generation, r=eddyb
Break out of the correct number of scopes in loops

We were incorrectly breaking out of one too many drop scopes when
generating MIR for loops and breakable blocks, resulting in use after
free and associated borrow checker warnings.

This wasn't noticed because the scope that we're breaking out of twice
is only used for temporaries that are created for adjustments applied to
the loop. Since loops generally propagate coercions to the `break`
expressions, the only case we see this is when the type of the loop is a
smart pointer to a trait object.

Closes #62312
2019-07-05 13:53:13 +02:00
..
2019-07-04 11:26:57 -04:00
2019-07-03 10:01:02 +02:00
2019-07-03 10:01:02 +02:00
2019-07-03 10:01:02 +02:00
2019-07-04 11:26:57 -04:00
2019-07-03 10:01:02 +02:00
2019-07-03 10:01:02 +02:00
2019-07-04 11:26:57 -04:00
2019-07-04 11:59:09 -07:00
2019-07-04 11:26:57 -04: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.

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