mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Move upvars query to librustc_passes.
This commit is contained in:
parent
62c2c99d7d
commit
124fd9d2a4
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user