Move upvars query to librustc_passes.

This commit is contained in:
Camille GILLOT 2020-01-01 17:31:03 +01:00
parent 62c2c99d7d
commit 124fd9d2a4
3 changed files with 5 additions and 5 deletions

View File

@ -5,11 +5,9 @@
pub mod check_attr;
pub mod exports;
pub mod map;
pub mod upvars;
use crate::ty::query::Providers;
pub fn provide(providers: &mut Providers<'_>) {
map::provide(providers);
upvars::provide(providers);
}

View File

@ -31,6 +31,7 @@ pub mod loops;
mod reachable;
mod region;
pub mod stability;
mod upvars;
pub fn provide(providers: &mut Providers<'_>) {
check_attr::provide(providers);
@ -44,4 +45,5 @@ pub fn provide(providers: &mut Providers<'_>) {
reachable::provide(providers);
region::provide(providers);
stability::provide(providers);
upvars::provide(providers);
}

View File

@ -1,8 +1,8 @@
//! Upvar (closure capture) collection from cross-body HIR uses of `Res::Local`s.
use crate::hir::map::Map;
use crate::ty::query::Providers;
use crate::ty::TyCtxt;
use rustc::hir::map::Map;
use rustc::ty::query::Providers;
use rustc::ty::TyCtxt;
use rustc_data_structures::fx::{FxHashSet, FxIndexMap};
use rustc_hir as hir;
use rustc_hir::def::Res;