Skip to content

Commit dd77c15

Browse files
---
yaml --- r: 277826 b: refs/heads/try c: 100a4f5 h: refs/heads/master
1 parent b08c1e6 commit dd77c15

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: 60259b9d90d977659c19644260f729adc3e43d75
4+
refs/heads/try: 100a4f5699eda98ad642adfb390cc8b8365c8aae
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_trans/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ fn create_trans_items_for_default_impls<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
11941194
assert!(mth.is_provided);
11951195

11961196
let predicates = mth.method.predicates.predicates.subst(tcx, &mth.substs);
1197-
if !normalize_and_test_predicates(ccx, predicates.into_vec()) {
1197+
if !normalize_and_test_predicates(ccx.tcx(), predicates.into_vec()) {
11981198
continue;
11991199
}
12001200

branches/try/src/librustc_trans/common.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,14 +1129,13 @@ pub fn fulfill_obligation<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
11291129
/// returns false, then either normalize encountered an error or one
11301130
/// of the predicates did not hold. Used when creating vtables to
11311131
/// check for unsatisfiable methods.
1132-
pub fn normalize_and_test_predicates<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
1133-
predicates: Vec<ty::Predicate<'tcx>>)
1134-
-> bool
1132+
pub fn normalize_and_test_predicates<'tcx>(tcx: &TyCtxt<'tcx>,
1133+
predicates: Vec<ty::Predicate<'tcx>>)
1134+
-> bool
11351135
{
11361136
debug!("normalize_and_test_predicates(predicates={:?})",
11371137
predicates);
11381138

1139-
let tcx = ccx.tcx();
11401139
let infcx = infer::normalizing_infer_ctxt(tcx, &tcx.tables, ProjectionMode::Any);
11411140
let mut selcx = SelectionContext::new(&infcx);
11421141
let mut fulfill_cx = traits::FulfillmentContext::new();

branches/try/src/librustc_trans/meth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ pub fn get_vtable_methods<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
287287
// try and trans it, in that case. Issue #23435.
288288
if mth.is_provided {
289289
let predicates = mth.method.predicates.predicates.subst(tcx, &mth.substs);
290-
if !normalize_and_test_predicates(ccx, predicates.into_vec()) {
290+
if !normalize_and_test_predicates(tcx, predicates.into_vec()) {
291291
debug!("get_vtable_methods: predicates do not hold");
292292
return None;
293293
}

0 commit comments

Comments
 (0)