]> git.lizzy.rs Git - rust.git/commit
Move hir::Place to librustc_middle/hir
authorAman Arora <me@aman-arora.com>
Mon, 6 Jul 2020 02:06:37 +0000 (22:06 -0400)
committerAman Arora <me@aman-arora.com>
Thu, 16 Jul 2020 22:57:03 +0000 (18:57 -0400)
commit50f3dbd1214fb9e582b845a364fc4746622e96a0
tree07dfae3f3a3c0588c3ec75d5842e62f3d2f3270c
parent5c9e5df3a097e094641f16dab501ab1c4da10e9f
Move hir::Place to librustc_middle/hir

Needed to support https://github.com/rust-lang/project-rfc-2229/issues/7

Currently rustc_typeck depends on rustc_middle for definition TypeckTables, etc.
For supporting project-rfc-2229#7, rustc_middle would've to depend on
rustc_typeck for Place -- introducing a circular dependcy.

This resembles the MIR equivalent of `Place` located in `lbrustc_middle/mir`.

Co-authored-by: Aman Arora <me@aman-arora.com>
Co-authored-by: Jennifer Wills <wills.jenniferg@gmail.com>
Co-authored-by: Logan Mosier <logmosier@gmail.com>
src/librustc_middle/hir/mod.rs
src/librustc_middle/hir/place.rs [new file with mode: 0644]
src/librustc_typeck/check/regionck.rs
src/librustc_typeck/check/upvar.rs
src/librustc_typeck/expr_use_visitor.rs
src/librustc_typeck/mem_categorization.rs