Skip to content

Commit 124fd9d

Browse files
committed
Move upvars query to librustc_passes.
1 parent 62c2c99 commit 124fd9d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/librustc/hir/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
pub mod check_attr;
66
pub mod exports;
77
pub mod map;
8-
pub mod upvars;
98

109
use crate::ty::query::Providers;
1110

1211
pub fn provide(providers: &mut Providers<'_>) {
1312
map::provide(providers);
14-
upvars::provide(providers);
1513
}

src/librustc_passes/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub mod loops;
3131
mod reachable;
3232
mod region;
3333
pub mod stability;
34+
mod upvars;
3435

3536
pub fn provide(providers: &mut Providers<'_>) {
3637
check_attr::provide(providers);
@@ -44,4 +45,5 @@ pub fn provide(providers: &mut Providers<'_>) {
4445
reachable::provide(providers);
4546
region::provide(providers);
4647
stability::provide(providers);
48+
upvars::provide(providers);
4749
}

src/librustc_passes/upvars.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! Upvar (closure capture) collection from cross-body HIR uses of `Res::Local`s.
22
3-
use crate::hir::map::Map;
4-
use crate::ty::query::Providers;
5-
use crate::ty::TyCtxt;
3+
use rustc::hir::map::Map;
4+
use rustc::ty::query::Providers;
5+
use rustc::ty::TyCtxt;
66
use rustc_data_structures::fx::{FxHashSet, FxIndexMap};
77
use rustc_hir as hir;
88
use rustc_hir::def::Res;

0 commit comments

Comments
 (0)