rust/src
bors 4e880f8cbc Auto merge of #88214 - notriddle:notriddle/for-loop-span-drop-temps-mut, r=nagisa
rustc: use more correct span data in for loop desugaring

Fixes #82462

Before:

      help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
         |
      LL |     for x in DroppingSlice(&*v).iter(); {
         |                                       +

After:

      help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
         |
      LL |     };
         |      +

This seems like a reasonable fix: since the desugared "expr_drop_temps_mut" contains the entire desugared loop construct, its span should contain the entire loop construct as well.
2021-09-11 07:11:01 +00:00
..
bootstrap Auto merge of #88362 - pietroalbini:bump-stage0, r=Mark-Simulacrum 2021-09-06 16:01:17 +00:00
build_helper rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
ci Work around CI issue with windows sdk 10.0.20348.0. 2021-09-10 13:46:15 +02:00
doc Fix typo option -> options. 2021-09-10 00:36:35 -07:00
etc set the executable bit on pre-commit.sh 2021-08-11 15:06:33 -04:00
librustdoc Rollup merge of #88776 - dns2utf8:rustdoc_workaround_1000_elements_grid_bug, r=GuillaumeGomez 2021-09-10 08:23:25 -07:00
llvm-project@ec995b75d7 Update LLVM submodule 2021-09-02 22:39:43 +02:00
rustdoc-json-types rustdoc: Clean up handling of lifetime bounds 2021-09-02 14:27:59 -07:00
test Auto merge of #88214 - notriddle:notriddle/for-loop-span-drop-temps-mut, r=nagisa 2021-09-11 07:11:01 +00:00
tools Auto merge of #88214 - notriddle:notriddle/for-loop-span-drop-temps-mut, r=nagisa 2021-09-11 07:11:01 +00:00
README.md
stage0.json Bump stage0 compiler to 1.56 2021-09-08 20:51:05 -04:00
version Bump version to 1.57 2021-09-03 21:54:48 -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.