Skip to content

Commit 959ecaa

Browse files
committed
---
yaml --- r: 234927 b: refs/heads/stable c: 2332765 h: refs/heads/master i: 234925: 56fe94f 234923: 266f49f 234919: 84c718f 234911: bef17ae v: v3
1 parent 9b25bd4 commit 959ecaa

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 59935f70e01b854bd1f43baa1915af38c37bcef2
32+
refs/heads/stable: 2332765cbc5d58fe03356a6adefc83ff6412c1c2
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/librustc/middle/ty.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,15 +2063,15 @@ impl<'tcx> GenericPredicates<'tcx> {
20632063
}
20642064
}
20652065

2066-
pub fn instantiate(&self, tcx: &ty::ctxt<'tcx>, substs: &Substs<'tcx>)
2066+
pub fn instantiate(&self, tcx: &ctxt<'tcx>, substs: &Substs<'tcx>)
20672067
-> InstantiatedPredicates<'tcx> {
20682068
InstantiatedPredicates {
20692069
predicates: self.predicates.subst(tcx, substs),
20702070
}
20712071
}
20722072

20732073
pub fn instantiate_supertrait(&self,
2074-
tcx: &ty::ctxt<'tcx>,
2074+
tcx: &ctxt<'tcx>,
20752075
poly_trait_ref: &ty::PolyTraitRef<'tcx>)
20762076
-> InstantiatedPredicates<'tcx>
20772077
{
@@ -2109,7 +2109,7 @@ impl<'tcx> Predicate<'tcx> {
21092109
/// substitution in terms of what happens with bound regions. See
21102110
/// lengthy comment below for details.
21112111
pub fn subst_supertrait(&self,
2112-
tcx: &ty::ctxt<'tcx>,
2112+
tcx: &ctxt<'tcx>,
21132113
trait_ref: &ty::PolyTraitRef<'tcx>)
21142114
-> ty::Predicate<'tcx>
21152115
{
@@ -2876,7 +2876,7 @@ impl ClosureKind {
28762876
}
28772877

28782878
pub trait ClosureTyper<'tcx> {
2879-
fn tcx(&self) -> &ty::ctxt<'tcx> {
2879+
fn tcx(&self) -> &ctxt<'tcx> {
28802880
self.param_env().tcx
28812881
}
28822882

@@ -3585,7 +3585,7 @@ impl ParamTy {
35853585
ParamTy::new(def.space, def.index, def.name)
35863586
}
35873587

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> {
35893589
ty::mk_param(tcx, self.space, self.idx, self.name)
35903590
}
35913591

@@ -4108,7 +4108,7 @@ pub fn type_contents<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> TypeContents {
41084108
}
41094109

41104110
fn type_impls_bound<'a,'tcx>(param_env: Option<&ParameterEnvironment<'a,'tcx>>,
4111-
tcx: &ty::ctxt<'tcx>,
4111+
tcx: &ctxt<'tcx>,
41124112
ty: Ty<'tcx>,
41134113
bound: ty::BuiltinBound,
41144114
span: Span)
@@ -4178,7 +4178,7 @@ pub fn type_moves_by_default<'a,'tcx>(param_env: &ParameterEnvironment<'a,'tcx>,
41784178

41794179
#[inline]
41804180
pub fn type_is_sized<'a,'tcx>(param_env: Option<&ParameterEnvironment<'a,'tcx>>,
4181-
tcx: &ty::ctxt<'tcx>,
4181+
tcx: &ctxt<'tcx>,
41824182
span: Span,
41834183
ty: Ty<'tcx>)
41844184
-> bool
@@ -4192,7 +4192,7 @@ pub fn type_is_sized<'a,'tcx>(param_env: Option<&ParameterEnvironment<'a,'tcx>>,
41924192
}
41934193

41944194
fn type_is_sized_uncached<'a,'tcx>(param_env: Option<&ParameterEnvironment<'a,'tcx>>,
4195-
tcx: &ty::ctxt<'tcx>,
4195+
tcx: &ctxt<'tcx>,
41964196
span: Span,
41974197
ty: Ty<'tcx>) -> bool {
41984198
assert!(!ty.needs_infer());
@@ -6703,7 +6703,7 @@ pub fn construct_free_substs<'a,'tcx>(
67036703
}
67046704
}
67056705

6706-
fn push_types_from_defs<'tcx>(tcx: &ty::ctxt<'tcx>,
6706+
fn push_types_from_defs<'tcx>(tcx: &ctxt<'tcx>,
67076707
types: &mut VecPerParamSpace<Ty<'tcx>>,
67086708
defs: &[TypeParameterDef<'tcx>]) {
67096709
for def in defs {
@@ -6966,7 +6966,7 @@ pub type TraitMap = NodeMap<Vec<DefId>>;
69666966
// imported.
69676967
pub type GlobMap = HashMap<NodeId, HashSet<Name>>;
69686968

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
69706970
F: FnOnce(&[Freevar]) -> T,
69716971
{
69726972
match tcx.freevars.borrow().get(&fid) {
@@ -6994,7 +6994,7 @@ impl<'tcx> AutoDerefRef<'tcx> {
69946994
/// Replace any late-bound regions bound in `value` with free variants attached to scope-id
69956995
/// `scope_id`.
69966996
pub fn liberate_late_bound_regions<'tcx, T>(
6997-
tcx: &ty::ctxt<'tcx>,
6997+
tcx: &ctxt<'tcx>,
69986998
all_outlive_scope: region::DestructionScopeData,
69996999
value: &Binder<T>)
70007000
-> T
@@ -7006,7 +7006,7 @@ pub fn liberate_late_bound_regions<'tcx, T>(
70067006
}
70077007

70087008
pub fn count_late_bound_regions<'tcx, T>(
7009-
tcx: &ty::ctxt<'tcx>,
7009+
tcx: &ctxt<'tcx>,
70107010
value: &Binder<T>)
70117011
-> usize
70127012
where T : TypeFoldable<'tcx>
@@ -7016,7 +7016,7 @@ pub fn count_late_bound_regions<'tcx, T>(
70167016
}
70177017

70187018
pub fn binds_late_bound_regions<'tcx, T>(
7019-
tcx: &ty::ctxt<'tcx>,
7019+
tcx: &ctxt<'tcx>,
70207020
value: &Binder<T>)
70217021
-> bool
70227022
where T : TypeFoldable<'tcx>
@@ -7027,7 +7027,7 @@ pub fn binds_late_bound_regions<'tcx, T>(
70277027
/// Flattens two binding levels into one. So `for<'a> for<'b> Foo`
70287028
/// becomes `for<'a,'b> Foo`.
70297029
pub fn flatten_late_bound_regions<'tcx, T>(
7030-
tcx: &ty::ctxt<'tcx>,
7030+
tcx: &ctxt<'tcx>,
70317031
bound2_value: &Binder<Binder<T>>)
70327032
-> Binder<T>
70337033
where T: TypeFoldable<'tcx>
@@ -7049,7 +7049,7 @@ pub fn flatten_late_bound_regions<'tcx, T>(
70497049
}
70507050

70517051
pub fn no_late_bound_regions<'tcx, T>(
7052-
tcx: &ty::ctxt<'tcx>,
7052+
tcx: &ctxt<'tcx>,
70537053
value: &Binder<T>)
70547054
-> Option<T>
70557055
where T : TypeFoldable<'tcx>
@@ -7064,7 +7064,7 @@ pub fn no_late_bound_regions<'tcx, T>(
70647064
/// Replace any late-bound regions bound in `value` with `'static`. Useful in trans but also
70657065
/// method lookup and a few other places where precise region relationships are not required.
70667066
pub fn erase_late_bound_regions<'tcx, T>(
7067-
tcx: &ty::ctxt<'tcx>,
7067+
tcx: &ctxt<'tcx>,
70687068
value: &Binder<T>)
70697069
-> T
70707070
where T : TypeFoldable<'tcx>
@@ -7147,7 +7147,7 @@ impl<'tcx> fmt::Debug for ty::Predicate<'tcx> {
71477147
}
71487148
}
71497149

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>,
71517151
trait_ref: &ty::TraitRef<'tcx>,
71527152
method: &ty::Method<'tcx>)
71537153
-> subst::Substs<'tcx>

0 commit comments

Comments
 (0)