rust/src
bors 9b21131278 Auto merge of #98360 - estebank:uninit-binding, r=oli-obk
On partial uninit error point at where we need init

When a binding is declared without a value, borrowck verifies that all
codepaths have *one* assignment to them to initialize them fully. If
there are any cases where a condition can be met that leaves the binding
uninitialized or we attempt to initialize a field of an uninitialized
binding, we emit E0381.

We now look at all the statements that initialize the binding, and use
them to explore branching code paths that *don't* and point at them. If
we find *no* potential places where an assignment to the binding might
be missing, we display the spans of all the existing initializers to
provide some context.

Fix https://github.com/rust-lang/rust/issues/97956.
2022-07-07 23:36:21 +00:00
..
bootstrap Rollup merge of #98994 - kons-9:dont_use_process_exit, r=jyn514 2022-07-07 20:33:28 +02:00
ci Auto merge of #98439 - ehuss:cleanup-ci-script, r=Mark-Simulacrum 2022-07-03 19:39:28 +00:00
doc Update books 2022-07-05 11:44:56 -07:00
etc Rollup merge of #95446 - notseanray:master, r=Mark-Simulacrum 2022-06-22 15:16:08 +09:00
librustdoc Auto merge of #99024 - matthiaskrgr:rollup-8ygpcpg, r=matthiaskrgr 2022-07-07 20:55:34 +00:00
llvm-project@8b6b5014fd Update llvm-project 2022-07-05 17:57:29 +02:00
rustdoc-json-types rustdoc-json: Fix HRTBs for WherePredicate::BoundPredicate 2022-05-04 21:03:01 +02:00
test Auto merge of #98360 - estebank:uninit-binding, r=oli-obk 2022-07-07 23:36:21 +00:00
tools Rollup merge of #98930 - tmiasko:pub-basic-blocks, r=oli-obk 2022-07-07 18:06:53 +05:30
README.md
stage0.json bump stage0 compiler 2022-06-29 15:35:30 +02:00
version bump version to 1.64.0 2022-06-24 17:27:24 +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.