rust/src
Yuki Okushi 99fc56b9de
Rollup merge of #85937 - m-ou-se:macro-ref-suggestions, r=estebank
Fix bad suggestions for code from proc_macro

Fixes #85932

This disables these suggestions for spans from external macros, while keeping them for macros defined locally:

Before:
```
3 | #[hello]
  | ^^^^^^^^
  | |
  | expected `&mut i32`, found integer
  | help: consider mutably borrowing here: `&mut #[hello]`
```

After:
```
3 | #[hello]
  | ^^^^^^^^ expected `&mut i32`, found integer
```

Unchanged:
```
26 | macro_rules! bla { () => { x(123); } }
   |                              ^^^
   |                              |
   |                              expected `&mut i32`, found integer
   |                              help: consider mutably borrowing here: `&mut 123`
...
29 |     bla!();
   |     ------- in this macro invocation
```
2021-06-04 13:42:58 +09:00
..
bootstrap Auto merge of #85395 - 12101111:build-crt, r=petrochenkov 2021-05-31 07:32:50 +00:00
build_helper Revert "Move llvm submodule updates to rustbuild" 2021-05-24 17:52:18 -04:00
ci Auto merge of #85395 - 12101111:build-crt, r=petrochenkov 2021-05-31 07:32:50 +00:00
doc Rollup merge of #85781 - badboy:document-aarch-ios-sim-support, r=Amanieu 2021-05-30 21:06:47 +02:00
etc Respond to review feedback 2021-06-02 10:23:12 -04:00
librustdoc Auto merge of #84834 - GuillaumeGomez:sidebar-unification, r=jsha 2021-06-03 02:31:44 +00:00
llvm-project@5f67a57157 Update LLVM submodule 2021-05-12 21:15:39 +02:00
rustdoc-json-types rustdoc-json: Rename Import.span to Import.source 2021-03-21 19:47:12 -07:00
test Rollup merge of #85937 - m-ou-se:macro-ref-suggestions, r=estebank 2021-06-04 13:42:58 +09:00
tools Rollup merge of #85899 - klensy:jsondocck-f, r=Mark-Simulacrum 2021-06-04 13:42:57 +09:00
README.md update message 2021-02-14 10:08:37 +05:30
stage0.txt remove cfg(bootstrap) 2021-05-24 11:07:48 -04:00
version bump version to 1.54.0 2021-04-30 15:24:00 +02: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.