Skip to content

Commit 4792407

Browse files
committed
---
yaml --- r: 171515 b: refs/heads/batch c: f67a722 h: refs/heads/master i: 171513: 0c7dc69 171511: 6bb960a v: v3
1 parent 064beb8 commit 4792407

File tree

5 files changed

+4
-70
lines changed

5 files changed

+4
-70
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: 9f1ead8fadc56bad30dc74f5cc50d78af4fbc972
32+
refs/heads/batch: f67a7227b7052608a23d1e324c29f8ec6addf58a
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/src/liballoc/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969

7070
#[macro_use]
7171
extern crate core;
72+
73+
#[cfg(all(not(external_funcs), not(external_crate)))]
7274
extern crate libc;
7375

7476
// Allow testing this library

branches/batch/src/librustc/middle/traits/project.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,7 @@ fn assemble_candidates_from_predicates<'cx,'tcx>(
452452
for predicate in elaborate_predicates(selcx.tcx(), env_predicates) {
453453
match predicate {
454454
ty::Predicate::Projection(ref data) => {
455-
let same_name = data.item_name() == obligation.predicate.item_name;
456-
457-
let is_match = same_name && infcx.probe(|_| {
455+
let is_match = infcx.probe(|_| {
458456
let origin = infer::Misc(obligation.cause.span);
459457
let obligation_poly_trait_ref =
460458
obligation_trait_ref.to_poly_trait_ref();
@@ -467,9 +465,6 @@ fn assemble_candidates_from_predicates<'cx,'tcx>(
467465
});
468466

469467
if is_match {
470-
debug!("assemble_candidates_from_predicates: candidate {}",
471-
data.repr(selcx.tcx()));
472-
473468
candidate_set.vec.push(
474469
ProjectionTyCandidate::ParamEnv(data.clone()));
475470
}
@@ -532,9 +527,6 @@ fn assemble_candidates_from_impls<'cx,'tcx>(
532527

533528
match vtable {
534529
super::VtableImpl(data) => {
535-
debug!("assemble_candidates_from_impls: impl candidate {}",
536-
data.repr(selcx.tcx()));
537-
538530
candidate_set.vec.push(
539531
ProjectionTyCandidate::Impl(data));
540532
}

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1892,10 +1892,6 @@ pub struct ProjectionPredicate<'tcx> {
18921892
pub type PolyProjectionPredicate<'tcx> = Binder<ProjectionPredicate<'tcx>>;
18931893

18941894
impl<'tcx> PolyProjectionPredicate<'tcx> {
1895-
pub fn item_name(&self) -> ast::Name {
1896-
self.0.projection_ty.item_name // safe to skip the binder to access a name
1897-
}
1898-
18991895
pub fn sort_key(&self) -> (ast::DefId, ast::Name) {
19001896
self.0.projection_ty.sort_key()
19011897
}

branches/batch/src/test/compile-fail/associated-types-multiple-types-one-trait.rs

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)