rust/src/test
bors 37f70a0e1e Auto merge of #90214 - tmiasko:indirect-mutation-qualif, r=ecstatic-morse,oli-obk
Consider indirect mutation during const qualification dataflow

Previously a local would be qualified if either one of two separate data
flow computations indicated so. First determined if a local could
contain the qualif, but ignored any forms of indirect mutation. Second
determined if a local could be mutably borrowed (and so indirectly
mutated), but which in turn ignored the qualif.

The end result was incorrect because the effect of indirect mutation was
effectivelly ignored in the all but the final stage of computation.

In the new implementation the indirect mutation is directly incorporated
into the qualif data flow. The local variable becomes immediately
qualified once it is mutably borrowed and borrowed place type can
contain the qualif.

In general we will now reject additional programs, program that were
prevously unintentionally accepted.

There are also some cases which are now accepted but were previously
rejected, because previous implementation didn't consider whether
borrowed place could have the qualif under the consideration.

Fixes #90124.

r? `@ecstatic-morse`
2021-10-29 08:38:39 +00:00
..
assembly Update the minimum external LLVM to 12 2021-10-22 10:50:07 -07:00
auxiliary
codegen Auto merge of #89652 - rcvalle:rust-cfi, r=nagisa 2021-10-27 09:19:42 +00:00
codegen-units Support incremental in compiletest for non-incremental modes. 2021-09-23 12:16:51 -07:00
debuginfo Fix function-names test for GDB 10.1 2021-10-11 17:20:45 +02:00
incremental Rollup merge of #89895 - camsteffen:for-loop-head-span, r=davidtwco 2021-10-22 19:42:45 +09:00
mir-opt Ignore wasm32 in test. 2021-10-17 16:35:04 +02:00
pretty Use ZST for fmt unsafety 2021-09-21 10:04:44 -05:00
run-make Rollup merge of #85833 - willcrichton:example-analyzer, r=jyn514 2021-10-23 14:58:39 +02:00
run-make-fulldeps Fix test 2021-10-25 15:15:05 +02:00
run-pass-valgrind
rustdoc Rollup merge of #90018 - GuillaumeGomez:too-long-item-names, r=jsha 2021-10-20 04:35:15 +09:00
rustdoc-gui Auto merge of #90186 - jsha:fix-header-sizes, r=GuillaumeGomez 2021-10-27 12:27:47 +00:00
rustdoc-js
rustdoc-js-std Fix linkcheck issues 2021-09-12 02:30:24 +00:00
rustdoc-json Add regression test for #89852 2021-10-14 02:12:18 +02:00
rustdoc-ui Rollup merge of #85833 - willcrichton:example-analyzer, r=jyn514 2021-10-23 14:58:39 +02:00
ui Auto merge of #90214 - tmiasko:indirect-mutation-qualif, r=ecstatic-morse,oli-obk 2021-10-29 08:38:39 +00:00
ui-fulldeps Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
COMPILER_TESTS.md