Skip to content

Commit ad44de3

Browse files
committed
---
yaml --- r: 171016 b: refs/heads/try c: f67a722 h: refs/heads/master v: v3
1 parent d719177 commit ad44de3

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 73a25f55ad748b4d3516417c711b99ce446591af
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
5-
refs/heads/try: 9f1ead8fadc56bad30dc74f5cc50d78af4fbc972
5+
refs/heads/try: f67a7227b7052608a23d1e324c29f8ec6addf58a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/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/try/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/try/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/try/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)