rust/src/test
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
..
assembly Fix test 2020-08-28 18:53:09 +01:00
auxiliary
codegen Test that bounds checks are elided for indexing after .[r]position() 2020-09-14 22:19:48 -04:00
codegen-units ty: remove obsolete printer 2020-08-30 18:59:07 +01:00
compile-fail pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
debuginfo debuginfo: Ignore HashMap tests before cdb 10.0.18362.1 2020-09-05 14:47:16 -07:00
incremental pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
mir-opt Auto merge of #75346 - davidtwco:issue-69925-polymorphic-instancedef-fnptrshim, r=nikomatsakis 2020-09-20 04:15:43 +00:00
pretty pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
run-make proc_macro: Add API for tracked access to environment variables 2020-07-26 13:37:37 +03:00
run-make-fulldeps Auto merge of #76378 - petrochenkov:lldtest, r=Mark-Simulacrum 2020-09-10 10:06:44 +00:00
run-pass-valgrind
rustdoc Auto merge of #76571 - lzutao:rustdoc-private-traits, r=jyn514 2020-09-14 08:25:41 +00:00
rustdoc-js Allow #[doc(alias)] on impl const items 2020-08-12 11:09:24 +02:00
rustdoc-js-std
rustdoc-ui Rollup merge of #76642 - GuillaumeGomez:ignored-private-doc-test, r=jyn514 2020-09-16 12:24:05 -07:00
rustfix
ui Auto merge of #76411 - RalfJung:promote-in-const-fn, r=ecstatic-morse 2020-09-20 06:20:16 +00:00
ui-fulldeps Fully integrate token collection for additional AST structs 2020-09-10 17:58:14 -04:00
COMPILER_TESTS.md