rust/src
bors e99a89c7c0 Auto merge of #73210 - wesleywiser:consts_in_debuginfo, r=oli-obk
[mir-opt] Allow debuginfo to be generated for a constant or a Place

Prior to this commit, debuginfo was always generated by mapping a name
to a Place. This has the side-effect that `SimplifyLocals` cannot remove
locals that are only used for debuginfo because their other uses have
been const-propagated.

To allow these locals to be removed, we now allow debuginfo to point to
a constant value. The `ConstProp` pass detects when debuginfo points to
a local with a known constant value and replaces it with the value. This
allows the later `SimplifyLocals` pass to remove the local.
2020-12-15 08:46:00 +00:00
..
bootstrap Rollup merge of #79970 - bjorn3:no_unnecessary_llvm_checkout, r=Mark-Simulacrum 2020-12-13 11:05:43 +09:00
build_helper
ci ci: use 20.04 on x86_64-gnu-nopt builder 2020-12-10 15:04:48 +00:00
doc Rollup merge of #79858 - sasurau4:doc/update-unstable-book-const-fn, r=oli-obk 2020-12-10 21:33:12 -08:00
etc
librustdoc Auto merge of #77700 - bugadani:rustdoc-link-cache, r=jyn514 2020-12-15 04:06:51 +00:00
llvm-project@8d78ad1389 Update LLVM submodule 2020-12-09 00:00:00 +00:00
test Auto merge of #73210 - wesleywiser:consts_in_debuginfo, r=oli-obk 2020-12-15 08:46:00 +00:00
tools Check the number of entries in UI test 2020-12-14 09:59:12 +09:00
README.md
stage0.txt
version

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.