rust/src
bors 10b3595ba6 Auto merge of #76411 - RalfJung:promote-in-const-fn, r=ecstatic-morse
Some promotion cleanup

Based on top of both https://github.com/rust-lang/rust/pull/75502 and https://github.com/rust-lang/rust/pull/75585, this does some cleanup of the promotion code. The last 2 commits are new.

* Remove the remaining cases where `const fn` is treated different from `fn`. This means no longer promoting ptr-to-int casts, raw ptr operations, and union field accesses in `const fn` -- or anywhere, for that matter. These are all unstable in const-context so this should not break any stable code. Fixes https://github.com/rust-lang/rust/issues/75586.
* ~~Promote references to statics even outside statics (i.e., in functions) for consistency.~~
* Promote `&mut []` everywhere, not just in non-`const` functions, for consistency.
* Explain why we do not promote deref's of statics outside statics. ~~(This is the only remaining direct user of `const_kind`.)~~

This can only land once the other two PRs land; I am mostly putting this up already because I couldn't wait ;) and to get some feedback from `@rust-lang/wg-const-eval` .
2020-09-20 06:20:16 +00:00
..
bootstrap Rollup merge of #76796 - jyn514:wrong-stage, r=shepmaster 2020-09-19 11:47:54 +02:00
build_helper cleanup: Remove duplicate library names from Cargo.tomls 2020-08-30 22:57:54 +03:00
ci Make sure we build target-only things (e.g., docs) for host platforms too 2020-09-18 12:00:53 -04:00
doc Auto merge of #76804 - tmandry:rollup-nwntt3q, r=tmandry 2020-09-16 20:18:19 +00:00
etc Implement HashSet in terms of hashbrown::HashSet 2020-09-08 17:24:23 -07:00
librustdoc Auto merge of #76782 - lzutao:rd-cap, r=jyn514 2020-09-18 21:31:08 +00:00
llvm-project@833dd1e3d4 Update llvm-project to include PR 73 2020-09-05 12:49:17 -07:00
test Auto merge of #76411 - RalfJung:promote-in-const-fn, r=ecstatic-morse 2020-09-20 06:20:16 +00:00
tools Rollup merge of #76798 - alistair23:alistair/rv32-linux, r=jyn514 2020-09-19 11:47:56 +02:00
README.md Update README.md 2020-08-30 13:40:11 -05:00
stage0.txt bump version to 1.48 2020-08-26 10:16:59 +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.