@@ -2063,15 +2063,15 @@ impl<'tcx> GenericPredicates<'tcx> {
2063
2063
}
2064
2064
}
2065
2065
2066
- pub fn instantiate ( & self , tcx : & ty :: ctxt < ' tcx > , substs : & Substs < ' tcx > )
2066
+ pub fn instantiate ( & self , tcx : & ctxt < ' tcx > , substs : & Substs < ' tcx > )
2067
2067
-> InstantiatedPredicates < ' tcx > {
2068
2068
InstantiatedPredicates {
2069
2069
predicates : self . predicates . subst ( tcx, substs) ,
2070
2070
}
2071
2071
}
2072
2072
2073
2073
pub fn instantiate_supertrait ( & self ,
2074
- tcx : & ty :: ctxt < ' tcx > ,
2074
+ tcx : & ctxt < ' tcx > ,
2075
2075
poly_trait_ref : & ty:: PolyTraitRef < ' tcx > )
2076
2076
-> InstantiatedPredicates < ' tcx >
2077
2077
{
@@ -2109,7 +2109,7 @@ impl<'tcx> Predicate<'tcx> {
2109
2109
/// substitution in terms of what happens with bound regions. See
2110
2110
/// lengthy comment below for details.
2111
2111
pub fn subst_supertrait ( & self ,
2112
- tcx : & ty :: ctxt < ' tcx > ,
2112
+ tcx : & ctxt < ' tcx > ,
2113
2113
trait_ref : & ty:: PolyTraitRef < ' tcx > )
2114
2114
-> ty:: Predicate < ' tcx >
2115
2115
{
@@ -2876,7 +2876,7 @@ impl ClosureKind {
2876
2876
}
2877
2877
2878
2878
pub trait ClosureTyper < ' tcx > {
2879
- fn tcx ( & self ) -> & ty :: ctxt < ' tcx > {
2879
+ fn tcx ( & self ) -> & ctxt < ' tcx > {
2880
2880
self . param_env ( ) . tcx
2881
2881
}
2882
2882
@@ -3585,7 +3585,7 @@ impl ParamTy {
3585
3585
ParamTy :: new ( def. space , def. index , def. name )
3586
3586
}
3587
3587
3588
- pub fn to_ty < ' tcx > ( self , tcx : & ty :: ctxt < ' tcx > ) -> Ty < ' tcx > {
3588
+ pub fn to_ty < ' tcx > ( self , tcx : & ctxt < ' tcx > ) -> Ty < ' tcx > {
3589
3589
ty:: mk_param ( tcx, self . space , self . idx , self . name )
3590
3590
}
3591
3591
@@ -4108,7 +4108,7 @@ pub fn type_contents<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> TypeContents {
4108
4108
}
4109
4109
4110
4110
fn type_impls_bound < ' a , ' tcx > ( param_env : Option < & ParameterEnvironment < ' a , ' tcx > > ,
4111
- tcx : & ty :: ctxt < ' tcx > ,
4111
+ tcx : & ctxt < ' tcx > ,
4112
4112
ty : Ty < ' tcx > ,
4113
4113
bound : ty:: BuiltinBound ,
4114
4114
span : Span )
@@ -4178,7 +4178,7 @@ pub fn type_moves_by_default<'a,'tcx>(param_env: &ParameterEnvironment<'a,'tcx>,
4178
4178
4179
4179
#[ inline]
4180
4180
pub fn type_is_sized < ' a , ' tcx > ( param_env : Option < & ParameterEnvironment < ' a , ' tcx > > ,
4181
- tcx : & ty :: ctxt < ' tcx > ,
4181
+ tcx : & ctxt < ' tcx > ,
4182
4182
span : Span ,
4183
4183
ty : Ty < ' tcx > )
4184
4184
-> bool
@@ -4192,7 +4192,7 @@ pub fn type_is_sized<'a,'tcx>(param_env: Option<&ParameterEnvironment<'a,'tcx>>,
4192
4192
}
4193
4193
4194
4194
fn type_is_sized_uncached < ' a , ' tcx > ( param_env : Option < & ParameterEnvironment < ' a , ' tcx > > ,
4195
- tcx : & ty :: ctxt < ' tcx > ,
4195
+ tcx : & ctxt < ' tcx > ,
4196
4196
span : Span ,
4197
4197
ty : Ty < ' tcx > ) -> bool {
4198
4198
assert ! ( !ty. needs_infer( ) ) ;
@@ -6703,7 +6703,7 @@ pub fn construct_free_substs<'a,'tcx>(
6703
6703
}
6704
6704
}
6705
6705
6706
- fn push_types_from_defs < ' tcx > ( tcx : & ty :: ctxt < ' tcx > ,
6706
+ fn push_types_from_defs < ' tcx > ( tcx : & ctxt < ' tcx > ,
6707
6707
types : & mut VecPerParamSpace < Ty < ' tcx > > ,
6708
6708
defs : & [ TypeParameterDef < ' tcx > ] ) {
6709
6709
for def in defs {
@@ -6966,7 +6966,7 @@ pub type TraitMap = NodeMap<Vec<DefId>>;
6966
6966
// imported.
6967
6967
pub type GlobMap = HashMap < NodeId , HashSet < Name > > ;
6968
6968
6969
- pub fn with_freevars < T , F > ( tcx : & ty :: ctxt , fid : ast:: NodeId , f : F ) -> T where
6969
+ pub fn with_freevars < T , F > ( tcx : & ctxt , fid : ast:: NodeId , f : F ) -> T where
6970
6970
F : FnOnce ( & [ Freevar ] ) -> T ,
6971
6971
{
6972
6972
match tcx. freevars . borrow ( ) . get ( & fid) {
@@ -6994,7 +6994,7 @@ impl<'tcx> AutoDerefRef<'tcx> {
6994
6994
/// Replace any late-bound regions bound in `value` with free variants attached to scope-id
6995
6995
/// `scope_id`.
6996
6996
pub fn liberate_late_bound_regions < ' tcx , T > (
6997
- tcx : & ty :: ctxt < ' tcx > ,
6997
+ tcx : & ctxt < ' tcx > ,
6998
6998
all_outlive_scope : region:: DestructionScopeData ,
6999
6999
value : & Binder < T > )
7000
7000
-> T
@@ -7006,7 +7006,7 @@ pub fn liberate_late_bound_regions<'tcx, T>(
7006
7006
}
7007
7007
7008
7008
pub fn count_late_bound_regions < ' tcx , T > (
7009
- tcx : & ty :: ctxt < ' tcx > ,
7009
+ tcx : & ctxt < ' tcx > ,
7010
7010
value : & Binder < T > )
7011
7011
-> usize
7012
7012
where T : TypeFoldable < ' tcx >
@@ -7016,7 +7016,7 @@ pub fn count_late_bound_regions<'tcx, T>(
7016
7016
}
7017
7017
7018
7018
pub fn binds_late_bound_regions < ' tcx , T > (
7019
- tcx : & ty :: ctxt < ' tcx > ,
7019
+ tcx : & ctxt < ' tcx > ,
7020
7020
value : & Binder < T > )
7021
7021
-> bool
7022
7022
where T : TypeFoldable < ' tcx >
@@ -7027,7 +7027,7 @@ pub fn binds_late_bound_regions<'tcx, T>(
7027
7027
/// Flattens two binding levels into one. So `for<'a> for<'b> Foo`
7028
7028
/// becomes `for<'a,'b> Foo`.
7029
7029
pub fn flatten_late_bound_regions < ' tcx , T > (
7030
- tcx : & ty :: ctxt < ' tcx > ,
7030
+ tcx : & ctxt < ' tcx > ,
7031
7031
bound2_value : & Binder < Binder < T > > )
7032
7032
-> Binder < T >
7033
7033
where T : TypeFoldable < ' tcx >
@@ -7049,7 +7049,7 @@ pub fn flatten_late_bound_regions<'tcx, T>(
7049
7049
}
7050
7050
7051
7051
pub fn no_late_bound_regions < ' tcx , T > (
7052
- tcx : & ty :: ctxt < ' tcx > ,
7052
+ tcx : & ctxt < ' tcx > ,
7053
7053
value : & Binder < T > )
7054
7054
-> Option < T >
7055
7055
where T : TypeFoldable < ' tcx >
@@ -7064,7 +7064,7 @@ pub fn no_late_bound_regions<'tcx, T>(
7064
7064
/// Replace any late-bound regions bound in `value` with `'static`. Useful in trans but also
7065
7065
/// method lookup and a few other places where precise region relationships are not required.
7066
7066
pub fn erase_late_bound_regions < ' tcx , T > (
7067
- tcx : & ty :: ctxt < ' tcx > ,
7067
+ tcx : & ctxt < ' tcx > ,
7068
7068
value : & Binder < T > )
7069
7069
-> T
7070
7070
where T : TypeFoldable < ' tcx >
@@ -7147,7 +7147,7 @@ impl<'tcx> fmt::Debug for ty::Predicate<'tcx> {
7147
7147
}
7148
7148
}
7149
7149
7150
- pub fn make_substs_for_receiver_types < ' tcx > ( tcx : & ty :: ctxt < ' tcx > ,
7150
+ pub fn make_substs_for_receiver_types < ' tcx > ( tcx : & ctxt < ' tcx > ,
7151
7151
trait_ref : & ty:: TraitRef < ' tcx > ,
7152
7152
method : & ty:: Method < ' tcx > )
7153
7153
-> subst:: Substs < ' tcx >
0 commit comments