]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #74424 - sexxi-goose:move_hir_place, r=nikomatsakis
authorManish Goregaokar <manishsmail@gmail.com>
Fri, 17 Jul 2020 21:09:26 +0000 (14:09 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Jul 2020 21:09:26 +0000 (14:09 -0700)
commit222d2508375a363be7a4f6ded3c9bd7be0803d19
tree24ab5e17a9ba90e90965d10de9314e4821fc5cea
parenteef22dae7e0ccbf484f1fef3989759fc75b6dddb
parent50f3dbd1214fb9e582b845a364fc4746622e96a0
Rollup merge of #74424 - sexxi-goose:move_hir_place, r=nikomatsakis

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 dependency.

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

Separate PR for this move will make the actual PR for using Places to represent captures cleaner/more focused.

r? @nikomatsakis  @matthewjasper
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