|
8 | 8 | // option. This file may not be copied, modified, or distributed
|
9 | 9 | // except according to those terms.
|
10 | 10 |
|
11 |
| -use rustc::infer::canonical::query_result; |
12 |
| -use rustc::infer::canonical::{Canonicalized, CanonicalizedQueryResult, QueryRegionConstraint}; |
13 |
| -use rustc::infer::{InferCtxt, InferOk, InferResult}; |
14 |
| -use rustc::traits::{ObligationCause, TraitEngine}; |
15 |
| -use rustc::ty::error::TypeError; |
16 |
| -use rustc::ty::fold::TypeFoldable; |
17 |
| -use rustc::ty::{Lift, ParamEnv, TyCtxt}; |
| 11 | +use infer::canonical::query_result; |
| 12 | +use infer::canonical::{Canonicalized, CanonicalizedQueryResult, QueryRegionConstraint}; |
| 13 | +use infer::{InferCtxt, InferOk, InferResult}; |
| 14 | +use traits::{ObligationCause, TraitEngine}; |
| 15 | +use ty::error::TypeError; |
| 16 | +use ty::fold::TypeFoldable; |
| 17 | +use ty::{Lift, ParamEnv, TyCtxt}; |
18 | 18 | use std::fmt;
|
19 | 19 | use std::rc::Rc;
|
20 | 20 | use syntax::codemap::DUMMY_SP;
|
21 | 21 |
|
22 |
| -crate mod custom; |
23 |
| -crate mod eq; |
24 |
| -crate mod normalize; |
25 |
| -crate mod outlives; |
26 |
| -crate mod predicates; |
27 |
| -crate mod subtype; |
| 22 | +pub mod custom; |
| 23 | +pub mod eq; |
| 24 | +pub mod normalize; |
| 25 | +pub mod outlives; |
| 26 | +pub mod predicates; |
| 27 | +pub mod subtype; |
28 | 28 |
|
29 |
| -crate trait TypeOp<'gcx, 'tcx>: Sized + fmt::Debug { |
| 29 | +pub trait TypeOp<'gcx, 'tcx>: Sized + fmt::Debug { |
30 | 30 | type Output;
|
31 | 31 |
|
32 | 32 | /// Micro-optimization: returns `Ok(x)` if we can trivially
|
@@ -100,7 +100,7 @@ crate trait TypeOp<'gcx, 'tcx>: Sized + fmt::Debug {
|
100 | 100 |
|
101 | 101 | type Lifted<'gcx, T> = <T as Lift<'gcx>>::Lifted;
|
102 | 102 |
|
103 |
| -crate trait QueryTypeOp<'gcx: 'tcx, 'tcx>: TypeFoldable<'tcx> + Lift<'gcx> { |
| 103 | +pub trait QueryTypeOp<'gcx: 'tcx, 'tcx>: TypeFoldable<'tcx> + Lift<'gcx> { |
104 | 104 | type QueryResult: TypeFoldable<'tcx> + Lift<'gcx>;
|
105 | 105 |
|
106 | 106 | /// Micro-optimization: returns `Ok(x)` if we can trivially
|
|
0 commit comments