diff options
| author | bors <bors@rust-lang.org> | 2017-07-14 23:29:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-07-14 23:29:51 +0000 |
| commit | 23ecebd6bd4362142ac586014aec44070a177a3d (patch) | |
| tree | e5ce2c9b5b3f58ba19b194879973b63cb314df6f /src/liballoc | |
| parent | 6d9d82d3dff580d2ec31e4db5cdef73c9625a864 (diff) | |
| parent | 0bbc3158300452dbb45931ab8d6740faa840d486 (diff) | |
| download | rust-23ecebd6bd4362142ac586014aec44070a177a3d.tar.gz rust-23ecebd6bd4362142ac586014aec44070a177a3d.zip | |
Auto merge of #43174 - RalfJung:refactor-ty, r=nikomatsakis
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
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions
