rust/compiler/rustc_mir_build/src
Tomasz Miąsko c9dd1d9983 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 08:11:49 +02:00
..
build Update TypeVisitor paths 2022-07-06 06:41:53 +01:00
thir Auto merge of #98925 - Dylan-DPC:rollup-9185c9y, r=Dylan-DPC 2022-07-05 12:17:26 +00:00
check_unsafety.rs
lib.rs
lints.rs Make MIR basic blocks field public 2022-07-07 08:11:49 +02:00