File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
branches/tmp/src/librustc/middle/traits Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32
32
refs/heads/beta: 2d00dc3b85aaf81caa3a4e5764c5e185a4dd0a7c
33
33
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
34
34
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35
- refs/heads/tmp: c68e65251c86ffdb21aecec56ec45e303d952d79
35
+ refs/heads/tmp: 699fc80780b50d302a74475ff9240995d8117516
36
36
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
37
37
refs/tags/homu-tmp: 704c2ee730d2e948d11a2edd77e3f35de8329a6e
38
38
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412
Original file line number Diff line number Diff line change @@ -859,6 +859,7 @@ fn confirm_impl_candidate<'cx,'tcx>(
859
859
// there don't seem to be nicer accessors to these:
860
860
let impl_or_trait_items_map = selcx. tcx ( ) . impl_or_trait_items . borrow ( ) ;
861
861
862
+ // Look for the associated type in the impl
862
863
for impl_item in & selcx. tcx ( ) . impl_items . borrow ( ) [ & impl_vtable. impl_def_id ] {
863
864
if let ty:: TypeTraitItem ( ref assoc_ty) = impl_or_trait_items_map[ & impl_item. def_id ( ) ] {
864
865
if assoc_ty. name == obligation. predicate . item_name {
@@ -868,6 +869,7 @@ fn confirm_impl_candidate<'cx,'tcx>(
868
869
}
869
870
}
870
871
872
+ // It is not in the impl - get the default from the trait.
871
873
let trait_ref = obligation. predicate . trait_ref ;
872
874
for trait_item in ty:: trait_items ( selcx. tcx ( ) , trait_ref. def_id ) . iter ( ) {
873
875
if let & ty:: TypeTraitItem ( ref assoc_ty) = trait_item {
You can’t perform that action at this time.
0 commit comments