23ecebd6bd
Refactor: {Lvalue,Rvalue,Operand}::ty only need the locals' types, not the full &Mir I am writing code that needs to call these `ty` methods while mutating MIR -- which is impossible with the current API. Even with the refactoring the situation is not great: I am cloning the `local_decls` and then passing the clone to the `ty` methods. I have to clone because `Mir::basic_blocks_mut` borrows the entire `Mir` including the `local_decls`. But even that is better than not being able to get these types at all... Cc @nikomatsakis |
||
---|---|---|
.. | ||
back | ||
debuginfo | ||
mir | ||
abi.rs | ||
adt.rs | ||
allocator.rs | ||
asm.rs | ||
assert_module_sources.rs | ||
attributes.rs | ||
base.rs | ||
builder.rs | ||
cabi_aarch64.rs | ||
cabi_arm.rs | ||
cabi_asmjs.rs | ||
cabi_hexagon.rs | ||
cabi_mips64.rs | ||
cabi_mips.rs | ||
cabi_msp430.rs | ||
cabi_nvptx64.rs | ||
cabi_nvptx.rs | ||
cabi_powerpc64.rs | ||
cabi_powerpc.rs | ||
cabi_s390x.rs | ||
cabi_sparc64.rs | ||
cabi_sparc.rs | ||
cabi_x86_64.rs | ||
cabi_x86_win64.rs | ||
cabi_x86.rs | ||
callee.rs | ||
Cargo.toml | ||
collector.rs | ||
common.rs | ||
consts.rs | ||
context.rs | ||
declare.rs | ||
diagnostics.rs | ||
glue.rs | ||
intrinsic.rs | ||
lib.rs | ||
llvm_util.rs | ||
machine.rs | ||
metadata.rs | ||
meth.rs | ||
monomorphize.rs | ||
partitioning.rs | ||
README.md | ||
symbol_names_test.rs | ||
trans_item.rs | ||
tvec.rs | ||
type_.rs | ||
type_of.rs | ||
value.rs |