rust/compiler/rustc_const_eval/src
Dylan DPC 71b3fbdb47
Rollup merge of #98930 - tmiasko:pub-basic-blocks, r=oli-obk
Make MIR basic blocks field public

This makes it possible to mutably borrow different fields of the MIR
body without resorting to methods like `basic_blocks_local_decls_mut_and_var_debug_info`.

To preserve validity of control flow graph caches in the presence of
modifications, a new struct `BasicBlocks` wraps together basic blocks
and control flow graph caches.

The `BasicBlocks` dereferences to `IndexVec<BasicBlock, BasicBlockData>`.
On the other hand a mutable access requires explicit `as_mut()` call.
2022-07-07 18:06:53 +05:30
..
const_eval interpret: remove LocalValue::Unallocated, add Operand::Uninit 2022-07-06 14:03:20 -04:00
interpret deduplicate some copy_op code 2022-07-06 14:11:41 -04:00
transform Rollup merge of #98930 - tmiasko:pub-basic-blocks, r=oli-obk 2022-07-07 18:06:53 +05:30
util cleanup mir visitor for rustc::pass_by_value 2022-07-01 16:21:21 +02:00
lib.rs fix interpreter validity check on Box 2022-07-03 22:42:50 -04:00