Skip to content

Commit ab8e026

Browse files
committed
Fix Repr impl for method::Candidate to include the method_ty.
1 parent 6b5ca8b commit ab8e026

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/middle/typeck/check/method.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,9 +1436,10 @@ impl<'a> LookupContext<'a> {
14361436

14371437
impl Repr for Candidate {
14381438
fn repr(&self, tcx: &ty::ctxt) -> ~str {
1439-
format!("Candidate(rcvr_ty={}, rcvr_substs={}, origin={:?})",
1439+
format!("Candidate(rcvr_ty={}, rcvr_substs={}, method_ty={}, origin={:?})",
14401440
self.rcvr_match_condition.repr(tcx),
14411441
self.rcvr_substs.repr(tcx),
1442+
self.method_ty.repr(tcx),
14421443
self.origin)
14431444
}
14441445
}

0 commit comments

Comments
 (0)