rust/src
bors cd377d90db Auto merge of #17991 - ChayimFriedman2:extract-variable-ref, r=Veykril
fix: Don't add reference when it isn't needed for the "Extract variable" assist

I.e. don't generate `let var_name = &foo()`. Because it always irritates me when I need to fix that.

Anything that creates a new value don't need a reference. That excludes mostly field accesses and indexing.

I had a thought that we can also not generate a reference for fields and indexing as long as the type is `Copy`, but sometimes people impl `Copy` even when they don't want to copy the values (e.g. a large type), so I didn't do that.
2024-08-29 08:14:04 +00:00
..
bootstrap Rollup merge of #129695 - GuillaumeGomez:fix-clippy-rustdoc-path, r=onur-ozkan 2024-08-28 19:12:55 -07:00
ci Rollup merge of #128935 - lqd:needs-zstd, r=Kobzol 2024-08-27 01:46:50 -05:00
doc Rollup merge of #129617 - rustbot:docs-update, r=ehuss 2024-08-28 19:12:53 -07:00
etc Generate completions after version updates 2024-08-18 22:52:54 -05:00
librustdoc Rollup merge of #129641 - notriddle:notriddle/missing-crates-js-resource-suffix, r=GuillaumeGomez 2024-08-28 17:12:18 +02:00
llvm-project@2b259b3c20 Update to LLVM 19 rc 3 2024-08-20 11:50:47 +02:00
rustdoc-json-types rustdoc-json: Use FxHashMap from rustdoc_json_types 2024-08-15 13:12:11 +00:00
tools Auto merge of #17991 - ChayimFriedman2:extract-variable-ref, r=Veykril 2024-08-29 08:14:04 +00:00
README.md
stage0 Bump src/stage0 with determinism 2024-07-30 15:16:35 -07:00
version Bump to 1.82 2024-07-20 10:30:39 -04:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

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